Ive been depressed/anxious in a cycle, and for the past , probably 2 years, I've lost focus on being able to stick to a schedule and produce work

it's affecting my coursework and in turn my future

does anyone have any advice for how to overcome something like this based on real experience? I'm so lost right now