--------If you are resigning from service by submitting notice of resignation/resignation then company is not terminating you by issuing order of termination.
Company has extracted a resignation from you and it is Forced resignation.
Forced resignation is deemed as termination.
Employee has to rise and agitate for forced resignation. Extracting resignation by force, coercion within of company is offence.
In your personnel file company might have inserted by now adverse comments which may reflect in adverse comments in future.
You would know what are the justification, reasons for and act committed by you that company has demanded to put in your papers and your logic of submitting resignation in concurrence to the demands of the company.
------As per Payment of Gratuity Act, 1972
Section (6) Notwithstanding anything contained in sub-section (1), -
(a) the gratuity of an employee, whose services have been terminated for any act, wilful omission or negligence causing any damage or loss to, or destruction of, property belonging to the employer, shall be forfeited to the extent of the damage or loss so caused.
(b) : the gratuity payable to an employee may be wholly or partially forfeited] -
(i) if the services of such employee have been terminated for his riotous or disorderly conduct or any other act of violence on his part, or
(ii) if the services of such employee have been terminated for any act which constitutes an offence involving moral turpitude, provided that such offence is committed by him in the course of his employment.
------If you have submitted notice of resignation you have notified your employer on your date of retirement and you can submit FormI (under proper acknowledgment) a month before date of retirement for payment of gratuity on date of retirement/last day in office along with FNF dues.
----- Employee can withdraw resignation before expiry of notice/last day in office.
There are many threads at LCI regarding Gratuity at:
https://www.lawyersclubindia.com/forum/Clarity-between-gratuity-eligibility-service-5-or-4-8-yrs--28768.asp#.UXrEe5indTs
It shall be appropriate to discuss in person with a competent and experienced labor consultant/service lawyer and proceed under expert advice of your lawyer to peruse the most suitable option as deemed fit at your end.