Upload all files to your hosting.

1) Edit db.php and set DB credentials.
2) Ensure your 'users' table exists with columns:
   id, uid, passport, name, father, mother, start, end, approve, image, birth
3) Open:
   permit_template.php?id=1

Notes:
- The template reads the user's photo from the 'image' column (e.g., uploads/xxx.jpg).
- QR code is generated via api.qrserver.com (internet required).
- Fixed fields you can change inside permit_template.php:
  sex, nationality, occupation, employer, regNo, duration, policeNumber, appNumber rule.
