Ideally you should only resign once the new WP has been granted, if you have problems with the WP application and you resigned you could be in trouble. Wait until the WP is in your hands and resign that day if you want.... So it's possible for the future company to apply for a working permit, even ...