MoammarIqbal/arsip-surat — reverse-engineered prompt
Reverse engineered prompt
Build me a web based letter archive system for PT Gramindo.
I want users to log in with email and password, then manage incoming and outgoing letters digitally. Admins should be able to manage all users and all letters, while normal users can add letters and only see their own records. A letter can be saved by uploading a PDF or image file, or by adding an online document link.
Please make the system automatically generate the letter archive number from the classification code and letter date, using roman numerals for the month, and make sure the sequence doesn’t skip numbers for each month. Before saving, show a preview of the next number. Users should be able to view the archive list, see letter details, and download the saved file. Admins can edit and delete letters.
Use Laravel with Blade pages, Tailwind styling, MySQL storage, and token based API login. Also include API endpoints and OpenAPI JSON docs for login, users, letters, preview number, download, update, and delete.
Want more depth? Deep Reverse