Unemployment is caused by the unilateral termination of the contract or the expiration of the contract, and you can receive unemployment benefits (provided that you have been insured by the company for more than 1 year), and there is no unemployment benefits when you leave the company.