# erfanmofidi/cinema-reservation architecture

> Architecture diagram of the GitHub repository erfanmofidi/cinema-reservation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/erfanmofidi/cinema-reservation
- Repository: https://github.com/erfanmofidi/cinema-reservation

## Overview

Lumière Cinema is a server-rendered Laravel reservation app, with an explicitly demo-only checkout and no payment integration. Customers browse films and showtimes, inspect live seat availability, check out, then manage reservations; staff maintain the catalogue, venues, screenings, and bookings. The graph distinguishes those domain stages from the reservation transaction and persistent domain records. Relationships rely on README statements and the supplied source excerpts/index; several controllers and admin subsystems were not sampled, so their internal calls are not inferred.

Main entry points: [`routes/web.php`](https://github.com/erfanmofidi/cinema-reservation/blob/main/routes/web.php) (Web routes), [`app/Models`](https://github.com/erfanmofidi/cinema-reservation/tree/main/app/Models) (Cinema domain records), [`app/Services/ReservationService.php`](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Services/ReservationService.php) (Reservation transactions), [`app/Http/Controllers/Admin/AuditoriumController.php`](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/AuditoriumController.php) (Auditorium management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_home["Home programme<br/>[HomeController.php]"]
  node_movies["Movie catalogue"]
  node_screening_view["Screening seat map"]
  node_live_map["Live availability<br/>[app.js]"]
end

subgraph group_catalogue["Programme and venues"]
  node_media["Movie media URLs<br/>[Media.php]"]
end

subgraph group_booking["Reservations"]
  node_checkout["Demo checkout"]
  node_reservation_service["Reservation transactions"]
  node_reservation_views["Reservation history"]
  node_reservation_policy["Reservation ownership policy"]
  node_domain_models["Cinema domain records"]
  node_database[("SQLite database")]
end

subgraph group_admin["Administration"]
  node_admin_dashboard["Admin dashboard"]
  node_admin_movies["Movie and genre management"]
  node_admin_venues["Auditorium management"]
  node_seat_layout["Seat layout generator"]
  node_admin_screenings["Screening management"]
  node_admin_reservations["Reservation inspection"]
end

subgraph group_identity["Identity and account"]
  node_auth["Registration and login"]
  node_profile["Profile management"]
end

node_customer(("Customer"))
node_staff(("Cinema staff"))
node_routes["Web routes<br/>[web.php]"]

node_customer -->|"navigates"| node_routes
node_staff -->|"uses admin"| node_routes
node_routes -->|"routes requests"| node_home
node_routes -->|"routes requests"| node_movies
node_routes -->|"routes requests"| node_screening_view
node_routes -->|"routes requests"| node_checkout
node_routes -->|"routes requests"| node_reservation_views
node_routes -->|"routes requests"| node_auth
node_routes -->|"routes requests"| node_profile
node_routes -->|"routes requests"| node_admin_dashboard
node_routes -->|"routes requests"| node_admin_movies
node_routes -->|"routes requests"| node_admin_venues
node_routes -->|"routes requests"| node_admin_screenings
node_routes -->|"routes requests"| node_admin_reservations
node_movies -->|"formats images"| node_media
node_screening_view -->|"renders seat map"| node_live_map
node_live_map -->|"refreshes availability"| node_screening_view
node_checkout -->|"creates booking"| node_reservation_service
node_admin_screenings -->|"cancels screenings"| node_reservation_service
node_reservation_views -.->|"authorizes cancellation"| node_reservation_policy
node_reservation_service -->|"creates and updates"| node_domain_models
node_domain_models -->|"persists records"| node_database
node_admin_venues -->|"generates layouts"| node_seat_layout
node_admin_movies -->|"manages catalogue"| node_domain_models
node_admin_venues -->|"manages venues"| node_domain_models
node_admin_screenings -->|"manages screenings"| node_domain_models
node_reservation_service -->|"transacts bookings"| node_database

click node_routes "https://github.com/erfanmofidi/cinema-reservation/blob/main/routes/web.php"
click node_home "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/HomeController.php"
click node_movies "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/MovieController.php"
click node_screening_view "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ScreeningController.php"
click node_live_map "https://github.com/erfanmofidi/cinema-reservation/blob/main/resources/js/app.js"
click node_checkout "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/CheckoutController.php"
click node_reservation_service "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Services/ReservationService.php"
click node_reservation_views "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ReservationController.php"
click node_reservation_policy "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Policies/ReservationPolicy.php"
click node_domain_models "https://github.com/erfanmofidi/cinema-reservation/tree/main/app/Models"
click node_admin_dashboard "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/DashboardController.php"
click node_admin_movies "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/MovieController.php"
click node_admin_venues "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/AuditoriumController.php"
click node_seat_layout "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Services/SeatLayoutGenerator.php"
click node_admin_screenings "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/ScreeningController.php"
click node_admin_reservations "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/ReservationController.php"
click node_auth "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_profile "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ProfileController.php"
click node_media "https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Support/Media.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_home,node_movies,node_screening_view,node_live_map toneBlue
class node_media toneAmber
class node_checkout,node_reservation_service,node_reservation_views,node_reservation_policy,node_domain_models,node_database,node_routes toneMint
class node_admin_dashboard,node_admin_movies,node_admin_venues,node_seat_layout,node_admin_screenings,node_admin_reservations toneRose
class node_auth,node_profile,node_customer,node_staff toneIndigo
```

## Components

### Customer experience

- [Home programme](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/HomeController.php): `app/Http/Controllers/HomeController.php`
- [Movie catalogue](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/MovieController.php): `app/Http/Controllers/MovieController.php`
- [Screening seat map](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ScreeningController.php): `app/Http/Controllers/ScreeningController.php`
- [Live availability](https://github.com/erfanmofidi/cinema-reservation/blob/main/resources/js/app.js): `resources/js/app.js`

### Programme and venues

- [Movie media URLs](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Support/Media.php): `app/Support/Media.php`

### Reservations

- [Demo checkout](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/CheckoutController.php): `app/Http/Controllers/CheckoutController.php`
- [Reservation transactions](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Services/ReservationService.php): `app/Services/ReservationService.php`
- [Reservation history](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ReservationController.php): `app/Http/Controllers/ReservationController.php`
- [Reservation ownership policy](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Policies/ReservationPolicy.php): `app/Policies/ReservationPolicy.php`
- [Cinema domain records](https://github.com/erfanmofidi/cinema-reservation/tree/main/app/Models): `app/Models`
- **SQLite database**

### Administration

- [Admin dashboard](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/DashboardController.php): `app/Http/Controllers/Admin/DashboardController.php`
- [Movie and genre management](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/MovieController.php): `app/Http/Controllers/Admin/MovieController.php`
- [Auditorium management](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/AuditoriumController.php): `app/Http/Controllers/Admin/AuditoriumController.php`
- [Seat layout generator](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Services/SeatLayoutGenerator.php): `app/Services/SeatLayoutGenerator.php`
- [Screening management](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/ScreeningController.php): `app/Http/Controllers/Admin/ScreeningController.php`
- [Reservation inspection](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Admin/ReservationController.php): `app/Http/Controllers/Admin/ReservationController.php`

### Identity and account

- [Registration and login](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [Profile management](https://github.com/erfanmofidi/cinema-reservation/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`

### Other components

- **Customer**
- **Cinema staff**
- [Web routes](https://github.com/erfanmofidi/cinema-reservation/blob/main/routes/web.php): `routes/web.php`

## Connections

- Customer → Web routes: navigates (evidence: `README.md`)
- Cinema staff → Web routes: uses admin (evidence: `README.md`)
- Web routes → Home programme: routes requests (evidence: `routes/web.php`)
- Web routes → Movie catalogue: routes requests (evidence: `routes/web.php`)
- Web routes → Screening seat map: routes requests (evidence: `routes/web.php`)
- Web routes → Demo checkout: routes requests (evidence: `routes/web.php`)
- Web routes → Reservation history: routes requests (evidence: `routes/web.php`)
- Web routes → Registration and login: routes requests (evidence: `routes/web.php`)
- Web routes → Profile management: routes requests (evidence: `routes/web.php`)
- Web routes → Admin dashboard: routes requests (evidence: `routes/web.php`)
- Web routes → Movie and genre management: routes requests (evidence: `routes/web.php`)
- Web routes → Auditorium management: routes requests (evidence: `routes/web.php`)
- Web routes → Screening management: routes requests (evidence: `routes/web.php`)
- Web routes → Reservation inspection: routes requests (evidence: `routes/web.php`)
- Movie catalogue → Movie media URLs: formats images
- Screening seat map → Live availability: renders seat map (evidence: `README.md`)
- Live availability → Screening seat map: refreshes availability (evidence: `README.md`)
- Demo checkout → Reservation transactions: creates booking (evidence: `app/Http/Controllers/CheckoutController.php`)
- Screening management → Reservation transactions: cancels screenings (evidence: `app/Http/Controllers/Admin/ScreeningController.php`)
- Reservation history → Reservation ownership policy: authorizes cancellation
- Reservation transactions → Cinema domain records: creates and updates (evidence: `app/Services/ReservationService.php`)
- Cinema domain records → SQLite database: persists records (evidence: `README.md`)
- Auditorium management → Seat layout generator: generates layouts (evidence: `app/Http/Controllers/Admin/AuditoriumController.php`)
- Movie and genre management → Cinema domain records: manages catalogue (evidence: `app/Http/Controllers/Admin/MovieController.php`)
- Auditorium management → Cinema domain records: manages venues (evidence: `app/Http/Controllers/Admin/AuditoriumController.php`)
- Screening management → Cinema domain records: manages screenings (evidence: `app/Http/Controllers/Admin/ScreeningController.php`)
- Reservation transactions → SQLite database: transacts bookings (evidence: `app/Services/ReservationService.php`)
