You can't quit the gym because you can't pay your salary, which seriously damages the rights and interests of workers. According to the labor law, employees can terminate the labor contract, but they can't leave their jobs at will, and they need to inform the company in advance.
The solution to the gym's arrears of wages: it can be agreed with the unit that the unit will pay the employees' wages; You can also complain to the local labor inspection brigade, and the wages of employees will be paid by the unit after coordination.