# johnreyilagan63-ctrl/appdev-sirdas architecture

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

- Interactive diagram: https://gitdiagram.com/johnreyilagan63-ctrl/appdev-sirdas
- Repository: https://github.com/johnreyilagan63-ctrl/appdev-sirdas

## Overview

This appears to be a cottage-and-room reservation web application: guests browse listings, submit and manage bookings, and leave reviews; owners manage listings and view activity; administrators manage bookings, listings, users, and review moderation. The map preserves those domain stages and the Laravel routing and model layer. The README is mostly Laravel boilerplate, and several capabilities are represented from the file tree and SOURCE INDEX rather than inspected excerpts, so unverified links are omitted.

Main entry points: [`routes/web.php`](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/routes/web.php) (Web routes), [`app/Models`](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/tree/main/app/Models) (Domain models), [`app/Http/Controllers/BookingController.php`](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/BookingController.php) (Booking flow), [`app/Http/Controllers/ReviewController.php`](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ReviewController.php) (Guest reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_front["HTTP entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_routes["Web routes<br/>[web.php]"]
end

subgraph group_guest["Guest services"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_booking["Booking flow"]
  node_profile["Profiles and stays"]
  node_reviews["Guest reviews"]
  node_public_pages["Public listings<br/>[HomeController.php]"]
  node_gallery["Cottage gallery"]
  node_contact["Contact inquiries"]
  node_booking_view["Booking form<br/>[booking.blade.php]"]
  node_reviews_view["Review pages<br/>[reviews.blade.php]"]
end

subgraph group_operations["Owner and admin"]
  node_owner_profile["Owner workspace"]
  node_admin_booking["Booking admin"]
  node_admin_cottages["Cottage admin"]
  node_admin_reviews["Review moderation"]
  node_admin_management["Admin management"]
  node_admin_cottage_view["Cottage admin page<br/>[cottages.blade.php]"]
end

subgraph group_domain["Domain and state"]
  node_models["Domain models"]
  node_database[("Application database<br/>[database.php]")]
end

node_visitor(("Web visitor"))

node_visitor -->|"requests"| node_front
node_front -->|"boots"| node_bootstrap
node_bootstrap -->|"loads routes"| node_routes
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_booking
node_routes -->|"routes to"| node_profile
node_routes -->|"routes to"| node_reviews
node_routes -->|"routes to"| node_public_pages
node_routes -->|"routes to"| node_gallery
node_routes -->|"routes to"| node_contact
node_routes -->|"routes to"| node_admin_booking
node_routes -->|"routes to"| node_admin_cottages
node_routes -->|"routes to"| node_admin_reviews
node_routes -->|"routes to"| node_admin_management
node_booking -->|"reads and writes"| node_models
node_profile -->|"reads and writes"| node_models
node_reviews -->|"reads and writes"| node_models
node_admin_cottages -->|"reads and writes"| node_models
node_admin_reviews -->|"moderates"| node_models
node_booking -->|"renders"| node_booking_view
node_reviews -->|"renders"| node_reviews_view
node_admin_cottages -->|"renders"| node_admin_cottage_view
node_models -.->|"persists through ORM"| node_database

click node_front "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/public/index.php"
click node_bootstrap "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/bootstrap/app.php"
click node_routes "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/routes/web.php"
click node_auth "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/AuthController.php"
click node_booking "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/BookingController.php"
click node_profile "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ProfileController.php"
click node_reviews "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ReviewController.php"
click node_public_pages "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/HomeController.php"
click node_gallery "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/GalleryController.php"
click node_contact "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ContactController.php"
click node_owner_profile "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ProfileController.php"
click node_admin_booking "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/BookingController.php"
click node_admin_cottages "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/CottageController.php"
click node_admin_reviews "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/ReviewController.php"
click node_admin_management "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/OwnerController.php"
click node_models "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/tree/main/app/Models"
click node_database "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/config/database.php"
click node_booking_view "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/booking.blade.php"
click node_reviews_view "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/reviews.blade.php"
click node_admin_cottage_view "https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/admin/cottages.blade.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_front,node_bootstrap,node_routes toneBlue
class node_auth,node_booking,node_profile,node_reviews,node_public_pages,node_gallery,node_contact,node_booking_view,node_reviews_view toneAmber
class node_owner_profile,node_admin_booking,node_admin_cottages,node_admin_reviews,node_admin_management,node_admin_cottage_view toneMint
class node_models,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [HTTP entry](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Web routes](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/routes/web.php): `routes/web.php`

### Guest services

- [Authentication](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Booking flow](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/BookingController.php): `app/Http/Controllers/BookingController.php`
- [Profiles and stays](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Guest reviews](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`
- [Public listings](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/HomeController.php): `app/Http/Controllers/HomeController.php`
- [Cottage gallery](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/GalleryController.php): `app/Http/Controllers/GalleryController.php`
- [Contact inquiries](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ContactController.php): `app/Http/Controllers/ContactController.php`
- [Booking form](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/booking.blade.php): `resources/views/booking.blade.php`
- [Review pages](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/reviews.blade.php): `resources/views/reviews.blade.php`

### Owner and admin

- [Owner workspace](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Booking admin](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/BookingController.php): `app/Http/Controllers/Admin/BookingController.php`
- [Cottage admin](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/CottageController.php): `app/Http/Controllers/Admin/CottageController.php`
- [Review moderation](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/ReviewController.php): `app/Http/Controllers/Admin/ReviewController.php`
- [Admin management](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/app/Http/Controllers/Admin/OwnerController.php): `app/Http/Controllers/Admin/OwnerController.php`
- [Cottage admin page](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/resources/views/admin/cottages.blade.php): `resources/views/admin/cottages.blade.php`

### Domain and state

- [Domain models](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/tree/main/app/Models): `app/Models`
- [Application database](https://github.com/johnreyilagan63-ctrl/appdev-sirdas/blob/main/config/database.php): `config/database.php`

### Other components

- **Web visitor**

## Connections

- Web visitor → HTTP entry: requests (evidence: `public/index.php`)
- HTTP entry → App bootstrap: boots (evidence: `public/index.php`)
- App bootstrap → Web routes: loads routes (evidence: `bootstrap/app.php`)
- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Booking flow: routes to (evidence: `routes/web.php`)
- Web routes → Profiles and stays: routes to (evidence: `routes/web.php`)
- Web routes → Guest reviews: routes to (evidence: `routes/web.php`)
- Web routes → Public listings: routes to (evidence: `routes/web.php`)
- Web routes → Cottage gallery: routes to (evidence: `routes/web.php`)
- Web routes → Contact inquiries: routes to (evidence: `routes/web.php`)
- Web routes → Booking admin: routes to (evidence: `routes/web.php`)
- Web routes → Cottage admin: routes to (evidence: `routes/web.php`)
- Web routes → Review moderation: routes to (evidence: `routes/web.php`)
- Web routes → Admin management: routes to (evidence: `routes/web.php`)
- Booking flow → Domain models: reads and writes (evidence: `app/Http/Controllers/BookingController.php`)
- Profiles and stays → Domain models: reads and writes (evidence: `app/Http/Controllers/ProfileController.php`)
- Guest reviews → Domain models: reads and writes (evidence: `app/Http/Controllers/ReviewController.php`)
- Cottage admin → Domain models: reads and writes (evidence: `app/Http/Controllers/Admin/CottageController.php`)
- Review moderation → Domain models: moderates (evidence: `app/Http/Controllers/Admin/ReviewController.php`)
- Booking flow → Booking form: renders (evidence: `app/Http/Controllers/BookingController.php`)
- Guest reviews → Review pages: renders (evidence: `app/Http/Controllers/ReviewController.php`)
- Cottage admin → Cottage admin page: renders (evidence: `app/Http/Controllers/Admin/CottageController.php`)
- Domain models → Application database: persists through ORM
