Bit hard to tell due to blurry picture but if both eyes are cloudy and have swollen up overnight, the fish has an infection in the skull or brain and it is putting pressure on the eyeballs and pushing them out. If the fish is still eating normally then it might survive. Clean water, clean substrate, clean filters all contribute to helping the fish recover. Infection in the brain can be from protozoan, bacterial or viral and it's impossible to tell which pathogen is causing the problem, so treating is a hit and miss affaire. I try to clean tank conditions us (big water change gravel clean substrate, clean the filter) and see what happens.
If only one eye is cloudy or swollen, then is probably injured and should recover in a few days if the water and tank is clean.