Labour Law, Article 57

"Upon termination of the service of the worker the employer shall at his cost return him to the place from where he has recruited him at the commencement of the engagement or to any place agreed upon between the parties."

There is no mention of any conditions, so the employer has to pay your outgoing ticket.

The other issues are not specifically mentioned in the Law so that would be determined by the contract, but stand on your rights regarding the outgoing ticket.

It is better to keep silent and be thought a fool than to speak and remove all doubt