Me, maybe it's not 10 days but its something like that.
I resigned, then company took passport and cancel work permit, passport came back with void stamped in it and another stamp that said something like permitted to stay until 10 September. I didn't get the work permit back.
Now have to go with the new company and get permit and passport sorted.