# hugo10-bit/kelompok5_toonburger architecture

> Architecture diagram of the GitHub repository hugo10-bit/kelompok5_toonburger, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hugo10-bit/kelompok5_toonburger
- Repository: https://github.com/hugo10-bit/kelompok5_toonburger

## Overview

Toon Burger is a Laravel burger-ordering and restaurant-operations website. Customers browse and search the menu, configure products in a session cart, apply coupons, check out for takeaway or delivery, then view orders and submit reviews. Staff manage orders and restaurant resources, with a separate POS flow for in-person sales. The graph reflects documented capabilities and sampled controller behavior; the route file and several controllers were not sampled, so detailed route-to-handler wiring is omitted.

Main entry points: [`routes/web.php`](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/OrderController.php`](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/OrderController.php) (Checkout and orders), [`app/Models`](https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/app/Models) (Domain models), [`app/Http/Controllers/CartController.php`](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/CartController.php) (Cart and coupons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer ordering"]
  node_menu["Menu browsing<br/>[MenuController.php]"]
  node_menuview["Menu pages<br/>[index.blade.php]"]
  node_cart["Cart and coupons<br/>[CartController.php]"]
  node_cartview["Cart interface<br/>[app.blade.php]"]
  node_checkout["Checkout and orders"]
  node_checkoutview["Checkout pages<br/>[checkout.blade.php]"]
  node_orderhistory["Order history<br/>[index.blade.php]"]
  node_orderdetail["Order details<br/>[show.blade.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_authview["Login and registration"]
  node_review["Product reviews"]
  node_gofood["GoFood and outlet links<br/>[app.blade.php]"]
end

subgraph group_operations["Restaurant operations"]
  node_admin["Admin operations"]
  node_adminviews["Admin and POS screens"]
  node_adminauth["Admin access control"]
end

subgraph group_domain["Application domain"]
  node_models["Domain models"]
  node_database[("Application database")]
end

subgraph group_runtime["Web runtime"]
  node_web["Laravel request entry<br/>[index.php]"]
  node_routes["Web routes<br/>[web.php]"]
end

node_customer(("Customer"))
node_staff(("Admin / staff"))

node_customer -->|"sends requests"| node_web
node_staff -->|"sends requests"| node_web
node_web -->|"dispatches"| node_routes
node_routes --> node_menu
node_routes --> node_cart
node_routes --> node_checkout
node_routes --> node_auth
node_routes --> node_admin
node_routes --> node_review
node_menu -->|"reads menu data"| node_models
node_menu -->|"renders"| node_menuview
node_cart -->|"reads products, coupons"| node_models
node_cart -->|"returns cart data"| node_cartview
node_cart -->|"provides cart"| node_checkout
node_checkout -->|"reads and writes orders"| node_models
node_checkout -->|"renders checkout"| node_checkoutview
node_checkout -->|"renders history"| node_orderhistory
node_checkout -->|"renders order"| node_orderdetail
node_checkout -->|"persists orders, payments"| node_database
node_auth -->|"reads and writes users"| node_models
node_auth -->|"renders"| node_authview
node_admin -->|"reads and writes operations data"| node_models
node_admin -->|"renders"| node_adminviews
node_adminauth -->|"guards access"| node_admin
node_review -->|"writes reviews"| node_models
node_models -->|"reads and writes"| node_database
node_customer -.->|"follows links"| node_gofood

click node_web "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/public/index.php"
click node_routes "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/routes/web.php"
click node_menu "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/MenuController.php"
click node_menuview "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/menu/index.blade.php"
click node_cart "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/CartController.php"
click node_cartview "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/layouts/app.blade.php"
click node_checkout "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/OrderController.php"
click node_checkoutview "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/checkout.blade.php"
click node_orderhistory "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/index.blade.php"
click node_orderdetail "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/show.blade.php"
click node_auth "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/AuthController.php"
click node_authview "https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/resources/views/auth"
click node_admin "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/AdminController.php"
click node_adminviews "https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/resources/views/admin"
click node_adminauth "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Middleware/AdminMiddleware.php"
click node_models "https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/app/Models"
click node_review "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/OrderController.php"
click node_gofood "https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/layouts/app.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_menu,node_menuview,node_cart,node_cartview,node_checkout,node_checkoutview,node_orderhistory,node_orderdetail,node_auth,node_authview,node_review,node_gofood toneBlue
class node_admin,node_adminviews,node_adminauth toneAmber
class node_models,node_database toneMint
class node_web,node_routes toneRose
class node_customer,node_staff toneIndigo
```

## Components

### Customer ordering

- [Menu browsing](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/MenuController.php): `app/Http/Controllers/MenuController.php`
- [Menu pages](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/menu/index.blade.php): `resources/views/menu/index.blade.php`
- [Cart and coupons](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/CartController.php): `app/Http/Controllers/CartController.php`
- [Cart interface](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`
- [Checkout and orders](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Checkout pages](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/checkout.blade.php): `resources/views/orders/checkout.blade.php`
- [Order history](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/index.blade.php): `resources/views/orders/index.blade.php`
- [Order details](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/orders/show.blade.php): `resources/views/orders/show.blade.php`
- [Authentication](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Login and registration](https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/resources/views/auth): `resources/views/auth`
- [Product reviews](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [GoFood and outlet links](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`

### Restaurant operations

- [Admin operations](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Admin and POS screens](https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/resources/views/admin): `resources/views/admin`
- [Admin access control](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/app/Http/Middleware/AdminMiddleware.php): `app/Http/Middleware/AdminMiddleware.php`

### Application domain

- [Domain models](https://github.com/hugo10-bit/kelompok5_toonburger/tree/main/app/Models): `app/Models`
- **Application database**

### Web runtime

- [Laravel request entry](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/public/index.php): `public/index.php`
- [Web routes](https://github.com/hugo10-bit/kelompok5_toonburger/blob/main/routes/web.php): `routes/web.php`

### Other components

- **Customer**
- **Admin / staff**

## Connections

- Customer → Laravel request entry: sends requests
- Admin / staff → Laravel request entry: sends requests
- Laravel request entry → Web routes: dispatches
- Web routes → Menu browsing
- Web routes → Cart and coupons
- Web routes → Checkout and orders
- Web routes → Authentication
- Web routes → Admin operations
- Web routes → Product reviews
- Menu browsing → Domain models: reads menu data
- Menu browsing → Menu pages: renders
- Cart and coupons → Domain models: reads products, coupons
- Cart and coupons → Cart interface: returns cart data
- Cart and coupons → Checkout and orders: provides cart
- Checkout and orders → Domain models: reads and writes orders
- Checkout and orders → Checkout pages: renders checkout
- Checkout and orders → Order history: renders history
- Checkout and orders → Order details: renders order
- Checkout and orders → Application database: persists orders, payments
- Authentication → Domain models: reads and writes users
- Authentication → Login and registration: renders
- Admin operations → Domain models: reads and writes operations data
- Admin operations → Admin and POS screens: renders
- Admin access control → Admin operations: guards access
- Product reviews → Domain models: writes reviews
- Domain models → Application database: reads and writes
- Customer → GoFood and outlet links: follows links
