Fetching details from the dictionary...

mess; sorry state; plight; sad sight
-ways; -wards
in the act of ...; just as one is ...
manner of ...; way of ...
ひどいざまになってしまった。
It turned into a terrible mess.
このざまでは人前に出られない。
I can't go out in public looking like this.
負けた時のざまは見苦しかった。
The sight of them losing was unpleasant.