# hainurrr/tubes_wad_kelompok-5 architecture

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

- Interactive diagram: https://gitdiagram.com/hainurrr/tubes_wad_kelompok-5
- Repository: https://github.com/hainurrr/tubes_wad_kelompok-5

## Overview

TelyuCan is a Laravel campus-canteen ordering and management application. Customers browse stalls and menus, build a multi-stall cart, check out through Midtrans, then track and review completed orders. Tenants manage menus and operations, process paid orders in a kitchen view, and report sales; admins manage users, stalls, and review moderation. The graph follows documented capabilities and sampled controller/service calls. Several subsystems are represented by their exact enclosing directories because their implementation excerpts were not provided.

Main entry points: [`routes/web.php`](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/routes/web.php) (Web routes), [`app/Models`](https://github.com/hainurrr/tubes_wad_kelompok-5/tree/main/app/Models) (Commerce models), [`app/Services/OrderCheckoutService.php`](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/OrderCheckoutService.php) (Checkout and payment handling), [`app/Http/Controllers/OrderController.php`](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php) (Cart and checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer ordering"]
  node_catalog["Catalog and stall discovery"]
  node_cart_checkout["Cart and checkout"]
  node_customer_orders["Order tracking and receipts"]
  node_customer_reviews["Customer reviews"]
  node_profile["Profile management"]
end

subgraph group_operations["Tenant operations"]
  node_tenant_menus["Menu and stock management<br/>[MenuController.php]"]
  node_kitchen["Kitchen and order status"]
  node_tenant_reports["Sales and manual orders"]
  node_tenant_reviews["Tenant review view"]
end

subgraph group_admin["Administration"]
  node_admin_dashboard["Admin dashboard"]
  node_admin_tenants["Tenant management"]
  node_admin_users["User management"]
  node_admin_reviews["Review moderation and export"]
end

subgraph group_core["Commerce services and data"]
  node_cart_service["Cart service<br/>[CartService.php]"]
  node_checkout_service["Checkout and payment handling"]
  node_media_service["Media uploads"]
  node_holiday_service["Holiday data<br/>[HolidayService.php]"]
  node_models["Commerce models"]
end

subgraph group_web["Web application"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_browser_modules["Browser interactions"]
end

node_customer(("Customer"))
node_tenant_user(("Tenant operator"))
node_admin_user(("Administrator"))
node_midtrans{{"Midtrans"}}
node_cloudinary{{"Cloudinary"}}
node_database[("Application database")]

node_customer -->|"requests pages"| node_web_routes
node_tenant_user -->|"requests operations"| node_web_routes
node_admin_user -->|"requests administration"| node_web_routes
node_web_routes -->|"dispatches"| node_catalog
node_web_routes -->|"dispatches"| node_cart_checkout
node_web_routes -->|"dispatches"| node_customer_orders
node_web_routes -->|"dispatches"| node_customer_reviews
node_web_routes -->|"dispatches"| node_profile
node_web_routes -->|"dispatches"| node_tenant_menus
node_web_routes -->|"dispatches"| node_kitchen
node_web_routes -->|"dispatches"| node_tenant_reports
node_web_routes -->|"dispatches"| node_tenant_reviews
node_web_routes -->|"dispatches"| node_admin_dashboard
node_web_routes -->|"dispatches"| node_admin_tenants
node_web_routes -->|"dispatches"| node_admin_users
node_web_routes -->|"dispatches"| node_admin_reviews
node_cart_checkout -->|"manages cart"| node_cart_service
node_cart_checkout -->|"starts checkout"| node_checkout_service
node_customer_orders -->|"cancels pending"| node_checkout_service
node_tenant_menus -->|"uploads media"| node_media_service
node_tenant_reports -->|"gets holidays"| node_holiday_service
node_kitchen -->|"updates status"| node_checkout_service
node_customer_reviews -->|"checks orders"| node_models
node_tenant_reviews -->|"queries reviews"| node_models
node_admin_reviews -->|"queries reviews"| node_models
node_catalog -->|"queries catalog"| node_models
node_cart_service -->|"reads menus"| node_models
node_checkout_service -->|"creates orders"| node_models
node_checkout_service -.->|"requests payment"| node_midtrans
node_checkout_service -->|"notifies status"| node_customer_orders
node_tenant_menus -.->|"stores images"| node_cloudinary
node_browser_modules -.->|"supports checkout"| node_cart_checkout
node_browser_modules -.->|"supports kitchen"| node_kitchen
node_models -.->|"persists records"| node_database

click node_web_routes "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/routes/web.php"
click node_catalog "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php"
click node_cart_checkout "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php"
click node_customer_orders "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php"
click node_customer_reviews "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php"
click node_profile "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ProfileController.php"
click node_tenant_menus "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/MenuController.php"
click node_kitchen "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/TenantOrderController.php"
click node_tenant_reports "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/TenantOrderController.php"
click node_tenant_reviews "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php"
click node_admin_dashboard "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/AdminController.php"
click node_admin_tenants "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/TenantController.php"
click node_admin_users "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/AdminUserController.php"
click node_admin_reviews "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php"
click node_cart_service "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/CartService.php"
click node_checkout_service "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/OrderCheckoutService.php"
click node_media_service "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/MediaUploadService.php"
click node_holiday_service "https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/HolidayService.php"
click node_models "https://github.com/hainurrr/tubes_wad_kelompok-5/tree/main/app/Models"
click node_browser_modules "https://github.com/hainurrr/tubes_wad_kelompok-5/tree/main/resources/js/modules"

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_catalog,node_cart_checkout,node_customer_orders,node_customer_reviews,node_profile toneBlue
class node_tenant_menus,node_kitchen,node_tenant_reports,node_tenant_reviews,node_database toneAmber
class node_admin_dashboard,node_admin_tenants,node_admin_users,node_admin_reviews toneMint
class node_cart_service,node_checkout_service,node_media_service,node_holiday_service,node_models toneRose
class node_web_routes,node_browser_modules,node_customer,node_tenant_user,node_admin_user,node_midtrans,node_cloudinary toneIndigo
```

## Components

### Customer ordering

- [Catalog and stall discovery](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Cart and checkout](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Order tracking and receipts](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Customer reviews](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`
- [Profile management](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`

### Tenant operations

- [Menu and stock management](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/MenuController.php): `app/Http/Controllers/Tenant/MenuController.php`
- [Kitchen and order status](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/TenantOrderController.php): `app/Http/Controllers/Tenant/TenantOrderController.php`
- [Sales and manual orders](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/Tenant/TenantOrderController.php): `app/Http/Controllers/Tenant/TenantOrderController.php`
- [Tenant review view](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`

### Administration

- [Admin dashboard](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Tenant management](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/TenantController.php): `app/Http/Controllers/TenantController.php`
- [User management](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/AdminUserController.php): `app/Http/Controllers/AdminUserController.php`
- [Review moderation and export](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Http/Controllers/ReviewController.php): `app/Http/Controllers/ReviewController.php`

### Commerce services and data

- [Cart service](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/CartService.php): `app/Services/CartService.php`
- [Checkout and payment handling](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/OrderCheckoutService.php): `app/Services/OrderCheckoutService.php`
- [Media uploads](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/MediaUploadService.php): `app/Services/MediaUploadService.php`
- [Holiday data](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/app/Services/HolidayService.php): `app/Services/HolidayService.php`
- [Commerce models](https://github.com/hainurrr/tubes_wad_kelompok-5/tree/main/app/Models): `app/Models`

### Web application

- [Web routes](https://github.com/hainurrr/tubes_wad_kelompok-5/blob/main/routes/web.php): `routes/web.php`
- [Browser interactions](https://github.com/hainurrr/tubes_wad_kelompok-5/tree/main/resources/js/modules): `resources/js/modules`

### Other components

- **Customer**
- **Tenant operator**
- **Administrator**
- **Midtrans**
- **Cloudinary**
- **Application database**

## Connections

- Customer → Web routes: requests pages (evidence: `routes/web.php`)
- Tenant operator → Web routes: requests operations (evidence: `routes/web.php`)
- Administrator → Web routes: requests administration (evidence: `routes/web.php`)
- Web routes → Catalog and stall discovery: dispatches (evidence: `routes/web.php`)
- Web routes → Cart and checkout: dispatches (evidence: `routes/web.php`)
- Web routes → Order tracking and receipts: dispatches (evidence: `routes/web.php`)
- Web routes → Customer reviews: dispatches (evidence: `routes/web.php`)
- Web routes → Profile management: dispatches (evidence: `routes/web.php`)
- Web routes → Menu and stock management: dispatches (evidence: `routes/web.php`)
- Web routes → Kitchen and order status: dispatches (evidence: `routes/web.php`)
- Web routes → Sales and manual orders: dispatches (evidence: `routes/web.php`)
- Web routes → Tenant review view: dispatches (evidence: `routes/web.php`)
- Web routes → Admin dashboard: dispatches (evidence: `routes/web.php`)
- Web routes → Tenant management: dispatches (evidence: `routes/web.php`)
- Web routes → User management: dispatches (evidence: `routes/web.php`)
- Web routes → Review moderation and export: dispatches (evidence: `routes/web.php`)
- Cart and checkout → Cart service: manages cart (evidence: `app/Http/Controllers/OrderController.php`)
- Cart and checkout → Checkout and payment handling: starts checkout (evidence: `app/Http/Controllers/OrderController.php`)
- Order tracking and receipts → Checkout and payment handling: cancels pending (evidence: `app/Http/Controllers/OrderController.php`)
- Menu and stock management → Media uploads: uploads media (evidence: `app/Http/Controllers/Tenant/MenuController.php`)
- Sales and manual orders → Holiday data: gets holidays (evidence: `app/Http/Controllers/Tenant/TenantOrderController.php`)
- Kitchen and order status → Checkout and payment handling: updates status (evidence: `app/Http/Controllers/Tenant/TenantOrderController.php`)
- Customer reviews → Commerce models: checks orders (evidence: `app/Http/Controllers/ReviewController.php`)
- Tenant review view → Commerce models: queries reviews (evidence: `app/Http/Controllers/ReviewController.php`)
- Review moderation and export → Commerce models: queries reviews (evidence: `app/Http/Controllers/ReviewController.php`)
- Catalog and stall discovery → Commerce models: queries catalog (evidence: `app/Http/Controllers/OrderController.php`)
- Cart service → Commerce models: reads menus (evidence: `app/Services/CartService.php`)
- Checkout and payment handling → Commerce models: creates orders (evidence: `app/Services/OrderCheckoutService.php`)
- Checkout and payment handling → Midtrans: requests payment (evidence: `README.md`)
- Checkout and payment handling → Order tracking and receipts: notifies status (evidence: `app/Services/OrderCheckoutService.php`)
- Menu and stock management → Cloudinary: stores images (evidence: `README.md`)
- Browser interactions → Cart and checkout: supports checkout (evidence: `README.md`)
- Browser interactions → Kitchen and order status: supports kitchen (evidence: `README.md`)
- Commerce models → Application database: persists records
