Well this is a big question..
The truth is that to get encourage in the mist of hard time is not a small job. It requires a lot of confidence.
Generally for me when it comes to situation one just have to develop confidence. A awkward example of this that happen to me was when my mum died.
Although this has a big impact on my life because she has been the only on standing for me. When the issue happen. I was in my final year in University, the truth is that i lost interest in reading or studying because i know my mum won't be there i made good grades from the university.
But then the did has been done. I just find a place in try to regain my confidence and let go of the past and bury the past in the past.
Although till today each time i remember that i always feel bad.