Meltdown/School

I’ve had a meltdown till 3am and school today. There is no chance that I can stay at home today. How do you deal with such awful days? 
I’m super exhausted and don’t know how to function today tho and I most certainly don’t feel like doing anything except staying in bed and sleeping