# luthfihalimii/fuzta-project architecture

> Architecture diagram of the GitHub repository luthfihalimii/fuzta-project, 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/luthfihalimii/fuzta-project
- Repository: https://github.com/luthfihalimii/fuzta-project

## Overview

Pizza Fruzta is a Laravel branch-operations and digital-ordering application with an Inertia/Vue staff interface and a public customer API. Staff take POS orders under cashier shifts; orders proceed through payment and kitchen status handling, while the customer API adds account, QRIS, and delivery capabilities. Separate operational domains cover catalog, inventory, purchasing, reports, audit, and branch management. Edges are limited to relationships shown in the excerpts, SOURCE INDEX references, or README; many unsampled API and domain internals are represented without speculative call chains.

Main entry points: [`resources/js/pages/pos/Index.vue`](https://github.com/luthfihalimii/fuzta-project/blob/main/resources/js/pages/pos/Index.vue) (POS and staff UI), [`app/Modules/Ordering/Models/Order.php`](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Models/Order.php) (Order lifecycle), [`app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php`](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php) (Customer checkout), [`app/Modules/Ordering/Http/Controllers/PosController.php`](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/PosController.php) (POS order handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_front["Staff experience"]
  node_staff["POS and staff UI<br/>[Index.vue]"]
end

subgraph group_sales["Ordering and payments"]
  node_pos["POS order handling<br/>[PosController.php]"]
  node_orders[("Order lifecycle<br/>[Order.php]")]
  node_catalog["Catalog and pricing"]
  node_payments[("Payments<br/>[Payment.php]")]
end

subgraph group_ops["Branch operations"]
  node_kitchen["Kitchen workflow"]
  node_inventory["Inventory ledger"]
  node_purchasing["Purchasing"]
  node_shifts[("Cashier shifts<br/>[CashierShift.php]")]
  node_branches[("Branches<br/>[Branch.php]")]
  node_reports["Operational reports"]
end

subgraph group_customer["Customer API and delivery"]
  node_checkout["Customer checkout"]
  node_doku["DOKU gateway<br/>[DokuClient.php]"]
  node_accounts["Customer accounts"]
  node_delivery["Delivery orchestration"]
  node_biteship["Biteship service<br/>[BiteshipClient.php]"]
end

subgraph group_shared["Shared domain"]
  node_http["Web and API routing<br/>[app.php]"]
  node_audit["Audit records<br/>[WriteAuditLog.php]"]
  node_audit_store[("Audit log store<br/>[AuditLog.php]")]
  node_notify["Alerts and push"]
end

node_actor_staff(("Staff"))
node_actor_customer(("Online customer"))
node_actor_cashier(("Cashier"))

node_actor_staff -->|"uses"| node_http
node_http -->|"serves UI"| node_staff
node_actor_cashier -.->|"operates"| node_staff
node_staff -->|"submits orders"| node_pos
node_pos -->|"reads catalog"| node_catalog
node_pos -->|"creates orders"| node_orders
node_pos -->|"checks shift"| node_shifts
node_actor_customer -->|"calls API"| node_http
node_http -->|"routes requests"| node_checkout
node_checkout -->|"prices items"| node_catalog
node_checkout -->|"creates order"| node_orders
node_checkout -->|"starts payment"| node_payments
node_payments -.->|"charges online"| node_doku
node_orders -->|"status workflow"| node_kitchen
node_orders -.->|"consumes ingredients"| node_inventory
node_purchasing -.->|"records stock"| node_inventory
node_staff -.->|"manages purchases"| node_purchasing
node_staff -.->|"manages stock"| node_inventory
node_staff -.->|"runs shift tasks"| node_shifts
node_shifts -->|"owns POS orders"| node_orders
node_shifts -->|"tracks payments"| node_payments
node_staff -.->|"administers branches"| node_branches
node_staff -.->|"views reports"| node_reports
node_staff -->|"audited actions"| node_audit
node_audit -->|"writes entries"| node_audit_store
node_checkout -.->|"supports accounts"| node_accounts
node_orders -.->|"arranges shipment"| node_delivery
node_delivery -.->|"requests shipment"| node_biteship
node_orders -.->|"status notifications"| node_notify
node_staff -.->|"receives alerts"| node_notify

click node_staff "https://github.com/luthfihalimii/fuzta-project/blob/main/resources/js/pages/pos/Index.vue"
click node_http "https://github.com/luthfihalimii/fuzta-project/blob/main/bootstrap/app.php"
click node_pos "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/PosController.php"
click node_checkout "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php"
click node_orders "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Models/Order.php"
click node_catalog "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Catalog/Http/Controllers/ProductController.php"
click node_payments "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Payments/Models/Payment.php"
click node_doku "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Payments/Clients/DokuClient.php"
click node_kitchen "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Kitchen/Http/Controllers/KitchenController.php"
click node_inventory "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Inventory/Actions/RecordStockMovement.php"
click node_purchasing "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Purchasing/Http/Controllers/PurchaseController.php"
click node_shifts "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Shifts/Models/CashierShift.php"
click node_branches "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Branches/Models/Branch.php"
click node_reports "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Reporting/Http/Controllers/ReportController.php"
click node_audit "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Identity/Actions/WriteAuditLog.php"
click node_audit_store "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Audit/Models/AuditLog.php"
click node_accounts "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Customers/Actions/RegisterCustomer.php"
click node_delivery "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Delivery/Actions/CreateBiteshipShipment.php"
click node_biteship "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Delivery/Clients/BiteshipClient.php"
click node_notify "https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Notifications/Actions/SendOperationalAlert.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_staff toneBlue
class node_pos,node_orders,node_catalog,node_payments toneAmber
class node_kitchen,node_inventory,node_purchasing,node_shifts,node_branches,node_reports toneMint
class node_checkout,node_doku,node_accounts,node_delivery,node_biteship toneRose
class node_http,node_audit,node_audit_store,node_notify,node_actor_staff,node_actor_customer,node_actor_cashier toneIndigo
```

## Components

### Staff experience

- [POS and staff UI](https://github.com/luthfihalimii/fuzta-project/blob/main/resources/js/pages/pos/Index.vue): `resources/js/pages/pos/Index.vue`

### Ordering and payments

- [POS order handling](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/PosController.php): `app/Modules/Ordering/Http/Controllers/PosController.php`
- [Order lifecycle](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Models/Order.php): `app/Modules/Ordering/Models/Order.php`
- [Catalog and pricing](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Catalog/Http/Controllers/ProductController.php): `app/Modules/Catalog/Http/Controllers/ProductController.php`
- [Payments](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Payments/Models/Payment.php): `app/Modules/Payments/Models/Payment.php`

### Branch operations

- [Kitchen workflow](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Kitchen/Http/Controllers/KitchenController.php): `app/Modules/Kitchen/Http/Controllers/KitchenController.php`
- [Inventory ledger](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Inventory/Actions/RecordStockMovement.php): `app/Modules/Inventory/Actions/RecordStockMovement.php`
- [Purchasing](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Purchasing/Http/Controllers/PurchaseController.php): `app/Modules/Purchasing/Http/Controllers/PurchaseController.php`
- [Cashier shifts](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Shifts/Models/CashierShift.php): `app/Modules/Shifts/Models/CashierShift.php`
- [Branches](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Branches/Models/Branch.php): `app/Modules/Branches/Models/Branch.php`
- [Operational reports](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Reporting/Http/Controllers/ReportController.php): `app/Modules/Reporting/Http/Controllers/ReportController.php`

### Customer API and delivery

- [Customer checkout](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php): `app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php`
- [DOKU gateway](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Payments/Clients/DokuClient.php): `app/Modules/Payments/Clients/DokuClient.php`
- [Customer accounts](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Customers/Actions/RegisterCustomer.php): `app/Modules/Customers/Actions/RegisterCustomer.php`
- [Delivery orchestration](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Delivery/Actions/CreateBiteshipShipment.php): `app/Modules/Delivery/Actions/CreateBiteshipShipment.php`
- [Biteship service](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Delivery/Clients/BiteshipClient.php): `app/Modules/Delivery/Clients/BiteshipClient.php`

### Shared domain

- [Web and API routing](https://github.com/luthfihalimii/fuzta-project/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Audit records](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Identity/Actions/WriteAuditLog.php): `app/Modules/Identity/Actions/WriteAuditLog.php`
- [Audit log store](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Audit/Models/AuditLog.php): `app/Modules/Audit/Models/AuditLog.php`
- [Alerts and push](https://github.com/luthfihalimii/fuzta-project/blob/main/app/Modules/Notifications/Actions/SendOperationalAlert.php): `app/Modules/Notifications/Actions/SendOperationalAlert.php`

### Other components

- **Staff**
- **Online customer**
- **Cashier**

## Connections

- Staff → Web and API routing: uses (evidence: `bootstrap/app.php`)
- Web and API routing → POS and staff UI: serves UI (evidence: `bootstrap/app.php`)
- Cashier → POS and staff UI: operates
- POS and staff UI → POS order handling: submits orders (evidence: `app/Modules/Ordering/Http/Controllers/PosController.php`)
- POS order handling → Catalog and pricing: reads catalog (evidence: `app/Modules/Ordering/Http/Controllers/PosController.php`)
- POS order handling → Order lifecycle: creates orders (evidence: `app/Modules/Ordering/Http/Controllers/PosController.php`)
- POS order handling → Cashier shifts: checks shift (evidence: `app/Modules/Ordering/Http/Controllers/PosController.php`)
- Online customer → Web and API routing: calls API (evidence: `bootstrap/app.php`)
- Web and API routing → Customer checkout: routes requests (evidence: `bootstrap/app.php`)
- Customer checkout → Catalog and pricing: prices items (evidence: `app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php`)
- Customer checkout → Order lifecycle: creates order (evidence: `app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php`)
- Customer checkout → Payments: starts payment (evidence: `app/Modules/Ordering/Http/Controllers/Api/CheckoutController.php`)
- Payments → DOKU gateway: charges online
- Order lifecycle → Kitchen workflow: status workflow (evidence: `app/Modules/Kitchen/Http/Controllers/KitchenController.php`)
- Order lifecycle → Inventory ledger: consumes ingredients
- Purchasing → Inventory ledger: records stock
- POS and staff UI → Purchasing: manages purchases
- POS and staff UI → Inventory ledger: manages stock
- POS and staff UI → Cashier shifts: runs shift tasks
- Cashier shifts → Order lifecycle: owns POS orders (evidence: `app/Modules/Shifts/Models/CashierShift.php`)
- Cashier shifts → Payments: tracks payments (evidence: `app/Modules/Shifts/Models/CashierShift.php`)
- POS and staff UI → Branches: administers branches
- POS and staff UI → Operational reports: views reports
- POS and staff UI → Audit records: audited actions
- Audit records → Audit log store: writes entries (evidence: `app/Modules/Identity/Actions/WriteAuditLog.php`)
- Customer checkout → Customer accounts: supports accounts
- Order lifecycle → Delivery orchestration: arranges shipment
- Delivery orchestration → Biteship service: requests shipment
- Order lifecycle → Alerts and push: status notifications
- POS and staff UI → Alerts and push: receives alerts
