Maybe you have been successful in areas of your life but are not giving yourself due credit. Thoughts of depression can lead to tunnel vision. Also, it seems as though you might be blaming yourself for not being where you want to be in life. Your parents may have made mistakes during your childhood which have contributed to your life difficulties. You had no control over your childhood but you have the power to make changes as an adult. It’s never too late to improve your life.
It is important to try to change your mindset. Try to adopt a more positive view of yourself. A strength that you possess is your high level of knowledge. No one can take that away from you. It is a strength and personal quality that both you and your daughter can be proud of.
I would highly recommend working with a therapist to help you analyze what it is that you specifically want to improve in your life. A therapist can help you make those changes. He or she can also help to analyze your life situation. He or she can also advise you about how you can better interact with your peers, how to use your education to your advantage, better ways to hold onto a job, and how to build the relationship you wish to have with your daughter. You may also benefit from psychiatric medication. Hopefully you are able to access mental health treatment in your country. If not, I would suggest seeking help and guidance from your church or local ministry. Good luck. Please take care.