What if i want to resign...

i need an advice, please..
what if i want to resign and i will give 1 month notice to my company i need to pay for my visa,iqama etc?
but my contract in ph if i will resign with 1month notice i will not pay for that, i will only pay for my plane ticket, please tell me what to do if they didn't accept my resignation.

thanks

Labor court.