If there are foreign to the resignation from the company. As the law,need to will prepare the documents to inform the Immigration Police to cancelled work permit and visa within a week before resign and the last day of the work end, Must out of Thailand within 24 hours.