need advise

hi there
im from Philippines i would like to know regarding about my situation the company who give me a business visa to work with them but unfortunately i didn't satisfy the way they treated me here in qatar.
i like to know if they can stop me going home or exit the country because i don't want to continue my working with them.
they the one who provide my business visa here in qatar and they took my passport and give me a copy only my, the thing is;
if they refuse to give my passport what things i can do?
can they stop me going exit. if refuse to continue?
what will be the condition regarding this?
please i need some answer
patience is a virtue
Be satisfied what you have today and you will be rewarded tomorrow...