What are the factors that affect the working environment in a company?

Firms neglect the work environment because they feel a lot of investment is required for something that is not paramount, but they are blatantly wrong, since the costs of a poor working environment will make the performance and productivity of employees decrease considerably, which will be more Expensive if it had been invested in the improvement of the work environment.