You can resign if not yet transfer your visa to your present company, even you signed the contract. You can make absent or not reporting to your present company.