DEPLOY READY PACKAGE - Staff Attendance
Generated from supplied public_html ZIP.

WHAT THIS PACKAGE CONTAINS
- Top-level public_html only.
- Removed the nested duplicate public_html/public_html folder to avoid deploying stale/duplicate files.
- Attendance app files are present:
  /attendance/index.html
  /attendance/app.js
  /attendance/style.css
  /attendance/service-worker.js
- API files are present:
  /api/db.php
  /api/helpers.php
  /api/login.php
  /api/clock-in.php
  /api/clock-out.php
  /api/attendance-history.php
  /api/working-lunch-start.php
  /api/working-lunch-end.php
  /api/working-lunch-status.php

QUICK DEPLOY
1. Backup the live public_html folder first.
2. Upload the contents of this public_html folder into the hosting account public_html root.
3. Confirm /api/db.php has the correct live database name, user and password.
4. Visit /attendance/ on a phone browser.
5. Login with an active user.
6. Test in this order:
   - Login
   - Clock In
   - Start Working Lunch
   - End Working Lunch
   - Clock Out
   - Refresh app and confirm state is correct

DATABASE EXPECTATIONS
The live database must already include these tables:
- users
- roles
- api_sessions
- user_worksites
- worksites
- work_sessions
- work_session_events
- work_session_breaks

VALIDATION DONE
- Required attendance/API files found.
- PHP syntax check passed for API and attendance-related PHP files.
- JavaScript syntax check passed for attendance/app.js.

IMPORTANT SECURITY NOTE
The users.csv export contains full password_hash values. Do not upload that CSV into public_html.
