# Sable Sands PMS Foundation Pack

This starter pack rebuilds the foundation of your lost lodge reservation system in plain PHP + MySQL + JavaScript + CSS using Bootstrap 5.

## Included
- `index.php`
- `login.php`
- `logout.php`
- `dashboard.php`
- shared includes (`includes/`)
- base CSS and JS (`assets/`)
- first reservation list page (`modules/reservations/reservation_list.php`)

## Expected database
This pack is aligned to the uploaded `macsoftl_sablesands` schema, especially:
- `users`
- `settings`
- `orders`
- `guests`
- `agents`
- `rooms`
- `room_types`
- `rel_orders_prices`
- `rel_orders_services`
- `payment`
- `services`

## Setup
1. Copy the folder contents into your project root.
2. Update DB credentials in `includes/database_connection.php`.
3. Make sure PHP sessions are enabled.
4. Open `login.php`.

## Login behavior
This pack supports both:
- legacy SHA1 passwords from your old `users.password`
- modern `password_hash()` passwords

If a SHA1 login succeeds, the user is transparently upgraded to `password_hash()`.

## Notes
- The foundation pack is intentionally conservative and compatible.
- It does not yet include create/edit reservation forms or the drag-drop planner.
- The next pack should add:
  - reservation create/edit
  - guest/agent selectors
  - room assignment
  - availability planner feed + drag-drop UI
