# Propane App (PHP + MySQL)

## Quick Start
1. Import SQL:
   - Open phpMyAdmin or MySQL CLI and run: `sql/setup.sql`
2. Configure DB:
   - Edit `db.php` with your MySQL credentials.
3. Bootstrap Admin:
   - Visit `/admin_login.php` in your browser. If no admin exists, you'll see "Create First Admin".
4. Create Areas:
   - `/admin_areas.php` to add/edit areas (some demo areas are inserted).
5. Add Driver:
   - `/admin_drivers.php` to create a driver and assign to an area.
6. Create User:
   - Visit `/user_profile.php` to create a user profile (name/area/GPS).
7. Place Order:
   - `/index.php` → tap "Order 1 Bottle".
8. Driver Workflow:
   - `/driver_login.php` → login → `/driver_panel.php` to take orders and mark delivered.
9. Admin Monitoring:
   - `/admin_orders.php` to see all orders updating every 8s.

## Notes
- Passwords are securely hashed using `password_hash()`.
- For production, add CSRF tokens and switch GET action links to POST forms.
- Google Maps links are provided to drivers when GPS coordinates are present.
