SUNCUR ENERGY LIMITED - OFFER PORTAL
====================================

This is a standalone PHP/MySQL application for public_html/offers.
It does not modify your existing Laravel application.

IMPORTANT SETUP
1. Upload and extract this package inside public_html/offers.
2. In cPanel, create/edit config/config.php using the database name, database
   username, and password you created. Do not share the password in chat.
3. Set a long random APP_SECRET (at least 32 characters).
4. Set SMTP host/port/security/username/password from cPanel > Email Accounts >
   Connect Devices. The password belongs only in config/config.php.
5. Set ADMIN_SETUP_KEY to a long one-time secret.
6. Visit https://YOUR-DOMAIN/offers/setup-admin.php?key=YOUR_SETUP_KEY
   to create the first administrator. Delete setup-admin.php immediately after.
7. Install Composer dependencies (dompdf/dompdf and phpmailer/phpmailer) on your
   hosting account, or ask hosting support to run Composer in this folder.
   The app expects vendor/autoload.php.
8. Ensure PHP 8.1+ and HTTPS are enabled.

SECURITY
- Keep config/config.php and storage/ inaccessible from the public web.
- The .htaccess files included deny direct access where Apache supports it.
- Passport numbers are encrypted at rest using APP_SECRET.
- A link can be used once. Expiry and revocation are checked server-side.
- Only issue genuine, authorized employment offers. This software does not
  verify vacancies, employers, immigration status, or legal compliance.

DATABASE
The application expects the three tables already created:
admin_users, offer_links, offer_letters.
If your existing column names differ, stop and send the table structure.
