Document Entitlement After Resignation
Which documents? Has the company retained your educational certificates? Do you mean those as documents? If yes, you will get them. But if by documents you mean a certificate to establish your service with the company, you are entitled to that as well. However, the wording in that certificate may not be exactly as you desire. It can include sentences like, "resigned following moonlighting was vouched." In a background verification, they can very well state this as an incident or reason for resignation. Sorry to say that this may follow you throughout your career.
The Consequences of Moonlighting
When many people remain unemployed, why do individuals like you, who have decent employment, engage in moonlighting?