I am a uni student quite close to graduating and for a period I began to perform very poorly at university, failing a bunch of courses in a single year and being put on a sort of “probation” as I let my GPA slip below the passing GPA
I never put any effort in because I was too depressed to do anything 

I tried my best to fix things and slowly my GPA began to climb up again, it is now just the slightest bit behind passing
But I think I’ve just ruined all my progress
This semester I’ve put in pretty much no effort at all, again, and can’t feel the motivation to study even though I know how important it is, again

I’m taking a course that I’ve previously failed (2 times in fact), after looking at the marks I have and what I would need in order to pass I don’t think I’ll be able to no matter what I do (the semester is over and all that’s left is the final exam) 

I absolutely despise myself for letting this happen when I was so close to fixing everything up and graduating (I only had 5 courses left) and I honestly don’t feel like living anymore 

Would anyone have any advice?