You are eligible for Gratuity if your resignation has been accepted.
Gratuity can be forfeited under Section 4(6)(a):
In case it is decided to forfeit gratuity of those employees whose services are terminated for any act, willful omission, or negligence causing any damage or loss to, or destruction of property belonging to the employer, it is imperative that the loss caused to the employer be first crystallized so that the gratuity be forfeited to that extent only.