Count it all Joy
Consider it pure joy, my brothers and sisters, whenever you face trials of many kinds, because you know that the testing of your faith produces perseverance. Let perseverance finish its work so that you may be mature and complete, not lacking anything. James 1:2-4
It is hard to look beyond a struggle or trial you are facing. Yet, you can trust that God will cause it to work for good if you trust and follow Him. That trust allows you to see beyond the trial and see God working in your life, and have joy knowing He is working in you. The trial will still be a hard time, but if you commit it to the Lord, and let Him help you through it, He will guard your heart and mind in Jesus, and your perseverance through this trial will strengthen and mature you. You can give God praise and thank Him when you look back at it, realizing God is faithful.