RMS DIGITAL CONTACT QR - FASA 10.4 DIGITAL STAFF ONBOARDING
===========================================================

INSTALL / UPGRADE EXISTING SYSTEM
1. Copy patch files into C:\xampp\htdocs\rms_contact_qr\ and replace when asked.
2. Login as ADMIN001.
3. Open: http://localhost/rms_contact_qr/upgrade_10_4.php
4. Click "Activate Fasa 10.4" once.
5. Open Admin > Onboarding Staf.

PUBLIC FLOW
Admin shows the public onboarding QR.
Staff scans QR -> Digital Staff Onboarding opens -> 5 easy steps -> submit -> PENDING.
Admin reviews details -> completes organisation info if needed -> Approve/Reject.
Approved records continue into Staff Directory / Organisation Chart / QR flow.

FASA 10.4 FEATURES
- Self-healing check/create for staff_registrations (fixes missing table fatal error)
- 5-step mobile-friendly onboarding form
- Browser auto-save draft (non-file fields)
- Personal details based on Lampiran H
- Employment and contact information
- KWSP / PERKESO / tax / Bank Rakyat / address fields
- Spouse / optional second spouse / up to 5 children
- Upload PHOTO, IC copy, signed CTOS, signed Akuan Sumpah, completed Medical Checkup
- PDF/JPG/PNG only, maximum 5MB per upload
- Admin-only onboarding detail page
- Admin can complete job / sector / department / unit before approval
- Official blank RMS forms bundled under assets/forms
- Staff gets a private token link to view auto-filled draft summaries
- Auto-filled draft pages can Print / Save PDF from browser

IMPORTANT
The auto-filled pages are working drafts to reduce repeated typing. They do not replace any official requirement for wet/e-signature, witness, Commissioner for Oaths, clinic/medical officer, or other RMS-approved completion process.
