I am a contract employee in a company. Will I get gratuity if I resign or retire after 5 years?

I am a contract employee in a company. Will I get gratuity if I resign or retire after 5 years?

If you are on the company rolls and are considered an employee of the company, then you will receive gratuity. However, if you are under a contract that is separate from the company then the gratuity should come from the contractor and not the company.