AUP HR & Payroll System (v1.7) - Deployment Guide
===================================================

1. Preparation
--------------
- Ensure your cPanel hosting supports PHP 7.4 or higher.
- Create a MySQL Database in cPanel (e.g., `aup_hr`).
- Create a Database User and Password, and assign it to the database.

2. Uploading Files
------------------
- Compress the `hr` folder (or the project files) into a ZIP file.
- Go to cPanel > File Manager > `public_html`.
- Upload the ZIP file and Extract it.
- Ensure the files (`index.php`, `config/`, `src/`) are in the desired folder (e.g., `public_html/hr`).

3. Configuration
----------------
- Open `config/config.php` in File Manager.
- Update the Database details:
  define('DB_NAME', 'your_cpanel_db_name');
  define('DB_USER', 'your_cpanel_db_user');
  define('DB_PASS', 'your_cpanel_db_password');
- Save the file.

4. Installation
---------------
- Open your browser and go to your site: `http://yourdomain.com/hr/install.php`
- Click "Run Installation".
- If successful, it will say "Database tables created successfully".
- **IMPORTANT**: Delete `install.php` after installation for security.

5. Login
--------
- Go to `http://yourdomain.com/hr/public/index.php`
- Default Admin Credentials:
  Username: admin
  Password: admin123

6. Getting Started
------------------
- **Create Branches**: Dashboard > Branches
- **Add Roles/Users**: (Currently auto-handled, future: Create specific users manually in DB or request feature)
- **Add Employees**: Employees > Add New (Assign them to Branches)
- **Payroll**:
  1. Configure Rules (Payroll Setup)
  2. Branch Managers login -> Input Monthly Variables
  3. HR Admin -> Process Salary & Print Sheet

Support
-------
For any issues, contact the developer.
