We are here to grow, to learn, to be strengthened through suffering and trials. Job is an incredible example of someone who suffers immensely but remains faithful. He understood that God was still there with him and that He would restore him in His time. He knew that through faith he would be blessed. It is so easy for us to think there is no hope for a situation to get better, that there is nothing good to be found in a crappy circumstance. It is far too easy for us to throw faith out the window when we suffer - but God tells us to keep faith and keep going. God will make us uncomfortable so that we can grow. We cannot grow if we are never challenged. We will never learn if we don't struggle first. Sometimes our most valuable lessons and most important growth comes from the darkest times of our lives.
Remember to keep faith and keep focused ESPECIALLY while you are struggling.
For I know that my Redeemer lives, and at the last he will stand upon the earth. Job 19:25