Hello, I'm glad to answer your question:
The company can't accept money from workers in any name, so this is definitely illegal, and the company is also irregular. Generally, the company issues work clothes free of charge and does not need to pay a deposit;
I hope the answer will help you!