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 ...
「様」 has other readings with different meanings.
何というざまだ、情けない。
What a pathetic state, how shameful.
このざまを見ろと言わんばかりだ。
It's as if to say 'look at this mess'.
負けた後のざまは見るに堪えない。
The state after losing is unbearable to watch.