Asking me to pay compensation but im not under there visa

Hi. I just want to ask my company theyre asking me to pay the remaining 7 months because iam resigning. But the thing is theyre not providing me a visa and NEVER will. But they dont want me to resign.. they said if i resign i need to pay the 7 months remaining in my contract. Is that even possible? Since im not under there visa.

1) Don't post the same question on multiple unrelated threads
2) See the sticky which I have created for just these types of issues

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

Closed