If you've put detergent in the salt container, then the water softener needs replacing. You may well have cleaned the salt container out, but you can't clean the water softener.
The cloudy deposit is limescale, because the water softener can't now do it's job.
A new softener is about £100.
Bernii
January 2011