Depression, anxiety and panic attacks are NOT a sign of weakness. They are signs of having tried to remain strong for too way long...
The cause of these illnesses is unknown. It is a romantic thought that one needs to pay the price of being too harsh on oneself before, and the body and mind gets tired and needs some rest. However, I would rather like to think it is like a car crash inside the brain, that the mind is damaged like a leg is broken.
Healing takes time. When a leg is broken, it needs surgery and cast to hold the broken bone(s) in place. After healing, it still takes time to grow the muscle back. It may also need physiotherapy exercises to help learning walking again. The mind is the same that it needs time to be function again after the breakdown. Unfortunately, the damage and the healing process of the mind are not visible that lots of misunderstanding, confusion and frustration are caused at the same time, making the recovery journey more difficult, and even longer.
Knowing when the mind is healed is a mystery. Yet sure when the mind is totally recovered, one may enjoy life more, as it is a blessing to be healthy.