Have hope. Went through a similar experience. There's nothing wrong with retreating and regrouping at home. Set manageable goals, like getting out of bed before noon and eating two meals a day. Work your way up slowly. See a therapist who specialises in solutions based therapy.
Life is an experience. You've experienced the shitty part. You also deserve to experience the good parts. I told myself all the time "I want to see my potential". You should at least see yours, right?