End of contract

Hi Sir end of contract dec.7 2023

My visa dec.252023

My boss told me I've must finish  my visa before they let me go it's true?

https://www.expat.com/forum/viewtopic.php?id=841333

My employer defaulted to pay for the work visa within the period given by LMRA, it's been over 3 months now, do I need to pay for another extension coz before my new employer can apply for me? Mind you I way given a CPR number in the application form when he started the process. Thank you