# WSC Logistics (Starter Freight Forwarder Ops App)
PHP 8+ + MySQL + AJAX partial loading (no full-page refresh) + Tailwind glassmorphism UI.

## Features in this starter
- Login with encrypted passwords (password_hash/password_verify)
- Google reCAPTCHA v2 checkbox on login (server-side verify) **(set keys in config)**
- Master BL (MBL) CRUD (basic)
- House BL (HBL) breakdown under an MBL
- HBL grid with action buttons: Arrival Notice, Invoice, Receipt, Delivery Order
- Invoice per HBL in USD with your charge lines and W/M costing:
  - chargeable_cbm = CEIL(cbm)
  - chargeable_weight_ton = gross_weight_kg / 1000
  - chargeable_units = max(chargeable_cbm, chargeable_weight_ton)
- Invoice header includes: Consignee + Billing Party (can differ)
- Document templates include full-width logo banner placeholder

## Quick start
1) Create DB and import schema:
   - Import `db/schema.sql` into MySQL.
2) Configure:
   - Copy `app/config.sample.php` to `app/config.php` and fill DB + reCAPTCHA keys.
3) Run locally:
   - `php -S localhost:8000 -t public`
   - Visit http://localhost:8000

## Notes
- This is a solid starter skeleton. You can extend: payments, receipts, DO numbering rules, PDF rendering, SMS/email sending, audit logs, etc.
