When we are struggling, sometimes we do not have energy to do things that others might take for granted, such as get out of bed, shower, get dressed, eat, sleep, or definitely go to work/class. When we fight with ourselves, such as trying to force ourselves to do something that has a pattern of exhausting us or causing us stress, it can make it even more difficult to do the thing. Going to class is important but your health and mental health are even more important. It sounds like you are really trying, and that's all you can expect from yourself. Celebrate your effort! You gave it a shot and it didn't happen, that's okay. It doesn't mean you will feel like this forever, or that it was your fault, even if you consciously decided not to go to class. Going to class or work can be a form of a self-harm if we are not in the right mental space, so it is totally okay to take a day off or more as needed as long as we try now and then and avoid making it a bad habit. People with chronic anxiety, chronic pain, depression, past trauma, and many other afflictions find it very difficult to do things others take for granted, and may end up blaming themselves even though it is ultimately not their fault that they are feeling too low to complete tasks or meet responsibilities. There are preventative measures you can try to take, to try to feel more rested or more optimistic when it is time to go to class, but those thought techniques take time to instill, so have patience with yourself, reward yourself for even trying, and don't push yourself too hard. Some ideas might be rewarding yourself for getting out of bed, rewarding yourself for getting out of the house, rewarding yourself when you get to class, and a huge reward at the end of the class day. Any step you take towards your goal of getting to class is worthy of celebration! You're human and humans feel things and struggle sometimes. You may be interested in reading about the Spoon Theory, a theory that uses an analogy to describe why people with low energy or low motivation have such a hard time with things that other people maybe don't. Good luck to you and treat yourself to something delicious, just for being aware of this issue and wanting to change it.