How to stop being sad?

So to start off I’m a senior in high school. This year we didn’t have an Ap government teacher for 3 months and this was my only class at the school. The beginning of the school year my career counselor told me that they were accepting 20 absences for year long. So because we didn’t have a teacher and that was my only class I felt that I should not come to school and focus on my senior plans and also go to work.

Apparently, I could only have 10 absences and not 20. Which I wasn’t aware of. The school just implemented the policy this year. We finally got a teacher and she’s from Poland teaching us AP Government. Some days she would even forget to take attendance but I thought it was a big deal considering I’m passing the class and I need to stay under 20.

Well, today when I went to discuss my attendance with the attendance lady. She told me I basically failed the class. But, she told me to contact the office lady to talk to her to see what i can do. I have 30 credits but government is a requirement for my school and now I’m having a panic attack and freaking out right now. I’m so afraid I won’t be able to graduate I’m also frustrated because I work two jobs and I dedicated everything to that class and my hard work should pay off.

How to stop being sad?
Post Opinion