# francis3002-01/it-37-beauty-booking-system architecture

> Architecture diagram of the GitHub repository francis3002-01/it-37-beauty-booking-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/francis3002-01/it-37-beauty-booking-system
- Repository: https://github.com/francis3002-01/it-37-beauty-booking-system

## Overview

beautyReserve is a PHP/MySQL booking-management web application for beauty-service businesses. Administrators and staff enter through a role-oriented landing/login experience, then manage bookings and resources, maintain client and staff records, and review booking history and reports. The appointment form includes resource, date/time, and payment fields; the README documents availability and overlap rules. The sampled pages show PHP-rendered dashboard shells and modal forms, but do not establish how JavaScript, backend handlers, or the database are wired together, so those connections are not inferred.

Main entry points: [`appointments.php`](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/appointments.php) (Appointment management), [`landingpage.php`](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/landingpage.php) (Role selection), [`clients.php`](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/clients.php) (Client records), [`reports.php`](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/reports.php) (Booking reports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and account"]
  node_landing["Role selection<br/>[landingpage.php]"]
  node_admin_login["Admin login form<br/>[AdminLogin.php]"]
  node_staff_login["Staff login form"]
  node_profile["Profile settings"]
  node_sidebar["Dashboard navigation<br/>[sidebar.php]"]
  node_footer["Shared page footer<br/>[footer.php]"]
end

subgraph group_booking["Bookings and payments"]
  node_appointments["Appointment management<br/>[appointments.php]"]
  node_appointment_form["Booking and payment form"]
  node_appointment_backend["Appointment handlers"]
end

subgraph group_operations["Resources and records"]
  node_beauticians["Beautician resources<br/>[beauticians.php]"]
  node_beautician_backend["Beautician handlers"]
  node_services["Service catalogue<br/>[services.php]"]
  node_service_backend["Service handlers"]
  node_clients["Client records<br/>[clients.php]"]
  node_staff_records["Staff records<br/>[staff.php]"]
  node_database_config["Database configuration<br/>[database.php]"]
end

subgraph group_insights["History and reporting"]
  node_history["Booking history<br/>[appointments.php]"]
  node_reports["Booking reports<br/>[reports.php]"]
end

node_admins(("Administrators"))
node_staff_users(("Staff users"))

node_admins -->|"select role"| node_landing
node_staff_users -->|"select role"| node_landing
node_landing -->|"opens login"| node_admin_login
node_landing -->|"opens login"| node_staff_login
node_admins -->|"manage bookings"| node_appointments
node_staff_users -->|"manage bookings"| node_appointments
node_appointments -->|"includes form"| node_appointment_form
node_admins -->|"manage resources"| node_beauticians
node_admins -->|"manage resources"| node_services
node_admins -->|"manage records"| node_clients
node_admins -->|"manage records"| node_staff_records
node_staff_users -->|"view client details"| node_clients
node_admins -->|"view history"| node_history
node_staff_users -->|"view history"| node_history
node_admins -->|"view reports"| node_reports
node_staff_users -->|"view reports"| node_reports
node_appointments -->|"includes navigation"| node_sidebar
node_appointments -->|"includes footer"| node_footer

click node_landing "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/landingpage.php"
click node_admin_login "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/AdminLogin.php"
click node_staff_login "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/StaffMemberLogin.php"
click node_profile "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/profile-settings.php"
click node_sidebar "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/sidebar.php"
click node_appointments "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/appointments.php"
click node_appointment_form "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/appointment_modal.php"
click node_appointment_backend "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/appointment_backend.php"
click node_beauticians "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/beauticians.php"
click node_beautician_backend "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/beauticians_backend.php"
click node_services "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/services.php"
click node_service_backend "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/services_backend.php"
click node_clients "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/clients.php"
click node_staff_records "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/staff.php"
click node_history "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/appointments.php"
click node_reports "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/reports.php"
click node_database_config "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/config/database.php"
click node_footer "https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/footer.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_landing,node_admin_login,node_staff_login,node_profile,node_sidebar,node_footer,node_staff_users toneBlue
class node_appointments,node_appointment_form,node_appointment_backend toneAmber
class node_beauticians,node_beautician_backend,node_services,node_service_backend,node_clients,node_staff_records,node_database_config toneMint
class node_history,node_reports toneRose
class node_admins toneIndigo
```

## Components

### Access and account

- [Role selection](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/landingpage.php): `landingpage.php`
- [Admin login form](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/AdminLogin.php): `includes/modals/AdminLogin.php`
- [Staff login form](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/StaffMemberLogin.php): `includes/modals/StaffMemberLogin.php`
- [Profile settings](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/profile-settings.php): `profile-settings.php`
- [Dashboard navigation](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/sidebar.php): `includes/sidebar.php`
- [Shared page footer](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/footer.php): `includes/footer.php`

### Bookings and payments

- [Appointment management](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/appointments.php): `appointments.php`
- [Booking and payment form](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/includes/modals/appointment_modal.php): `includes/modals/appointment_modal.php`
- [Appointment handlers](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/appointment_backend.php): `backend logic/appointment_backend.php`

### Resources and records

- [Beautician resources](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/beauticians.php): `beauticians.php`
- [Beautician handlers](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/beauticians_backend.php): `backend logic/beauticians_backend.php`
- [Service catalogue](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/services.php): `services.php`
- [Service handlers](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/backend%20logic/services_backend.php): `backend logic/services_backend.php`
- [Client records](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/clients.php): `clients.php`
- [Staff records](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/staff.php): `staff.php`
- [Database configuration](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/config/database.php): `config/database.php`

### History and reporting

- [Booking history](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/appointments.php): `appointments.php`
- [Booking reports](https://github.com/francis3002-01/it-37-beauty-booking-system/blob/main/reports.php): `reports.php`

### Other components

- **Administrators**
- **Staff users**

## Connections

- Administrators → Role selection: select role (evidence: `README.md`)
- Staff users → Role selection: select role (evidence: `README.md`)
- Role selection → Admin login form: opens login (evidence: `landingpage.php`)
- Role selection → Staff login form: opens login (evidence: `landingpage.php`)
- Administrators → Appointment management: manage bookings (evidence: `README.md`)
- Staff users → Appointment management: manage bookings (evidence: `README.md`)
- Appointment management → Booking and payment form: includes form (evidence: `appointments.php`)
- Administrators → Beautician resources: manage resources (evidence: `README.md`)
- Administrators → Service catalogue: manage resources (evidence: `README.md`)
- Administrators → Client records: manage records (evidence: `README.md`)
- Administrators → Staff records: manage records (evidence: `README.md`)
- Staff users → Client records: view client details (evidence: `README.md`)
- Administrators → Booking history: view history (evidence: `README.md`)
- Staff users → Booking history: view history (evidence: `README.md`)
- Administrators → Booking reports: view reports (evidence: `README.md`)
- Staff users → Booking reports: view reports (evidence: `README.md`)
- Appointment management → Dashboard navigation: includes navigation (evidence: `appointments.php`)
- Appointment management → Shared page footer: includes footer (evidence: `appointments.php`)
