How do you make it through school?

I'm genuinely completely lost. I'm so drained and tired. Maybe I need to change my mindset away from hating school, but idk how. It's so hard. I'm failing most classes. I'm trying desperately to get my grades up, but it's a struggle.