And the new company should have permit from ministry to give offer to your nationality too.

Its look like too complex to get a new job. If am a UK national and lost my abc job, the new company should have a permit for recruiting abc job and offer visa for UK nationality.

How it is possible ?