Check water parameters. If water not good they will get cloudy eyes. Do a water change. I've also found that my gars get cloudy eye if they are stressed or a lot of fighting going on in the tank
I've read in other posts that if you keep the water clean and maybe add some salt that it usually clears up in a few days. It gets worse before it gets better.