a resignation is a unilateral one way communication.
You are not a bonded labour. you can quit when you want.
You can stop going to office tomorrow and the worst the company can do , legally, is to recover the notice period from your full and final payment.