# satar2007/proyek-informatika architecture

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

- Interactive diagram: https://gitdiagram.com/satar2007/proyek-informatika
- Repository: https://github.com/satar2007/proyek-informatika

## Overview

JIMNY COFFEE is a Laravel point-of-sale and coffee-shop operations system for cashier, admin, and owner roles. The core workflow is cashier order entry, transaction and stock handling, payment, then operational and sales reporting. Separate branches cover staff attendance and administration, owner forecasting and restock decisions, and a role-scoped Smart Assistant with optional local Ollama responses. The graph reflects documented features and sampled call relationships; unsampled route and subsystem wiring is left out rather than inferred.

Main entry points: [`jimny-coffee/app/Http/Controllers/TransactionController.php`](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/TransactionController.php) (Transactions), [`jimny-coffee/resources/views/kasir/index.blade.php`](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/views/kasir/index.blade.php) (POS Interface), [`jimny-coffee/app/Services/StockReservationService.php`](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/StockReservationService.php) (Stock Reservation), [`jimny-coffee/resources/js/jimny-smart-assistant.js`](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/js/jimny-smart-assistant.js) (Assistant Components)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sales["POS and Payments"]
  node_posui["POS Interface<br/>[index.blade.php]"]
  node_posjs["POS Components"]
  node_transactions["Transactions"]
  node_txnstore[("Transaction Records<br/>[Transaction.php]")]
  node_txndetail[("Order Details")]
  node_stockreserve["Stock Reservation"]
  node_stocklog[("Stock Logs<br/>[StockLog.php]")]
  node_payment["Payment Handling<br/>[PaymentService.php]"]
  node_midtrans["Midtrans Gateway"]
end

subgraph group_ops["Store Operations"]
  node_menus[("Menu Catalog<br/>[Menu.php]")]
  node_menuadmin["Menu Management<br/>[MenuController.php]"]
  node_staffops["Staff Operations"]
  node_staffrecords[("Staff Records<br/>[Attendance.php]")]
  node_admin["Admin Tools"]
end

subgraph group_insight["Owner Intelligence"]
  node_reports["Sales Reports"]
  node_owner["Owner Dashboard"]
  node_forecast["Forecasting"]
  node_forecastengine["Forecast Engine"]
end

subgraph group_assistant["Smart Assistant"]
  node_assistantui["Assistant Interface"]
  node_assistantjs["Assistant Components"]
  node_assistantapi["POS Assistant"]
  node_ownerai["Owner Assistant"]
  node_localai["Local AI Responses"]
  node_analytics["POS Analytics"]
end

subgraph group_platform["Access and Security"]
  node_auth["Authentication"]
  node_users[("User Accounts<br/>[User.php]")]
  node_roles["Role Access<br/>[RoleMiddleware.php]"]
  node_securitylog["Security Events"]
end

node_cashier(("Cashier"))
node_gateway["Midtrans"]
node_ollama["Ollama"]

node_cashier -.->|"enters orders"| node_posui
node_posui -.->|"uses controls"| node_posjs
node_posui -.->|"submits transactions"| node_transactions
node_transactions -->|"reads and updates"| node_txnstore
node_transactions -->|"reserves stock"| node_stockreserve
node_stockreserve -->|"checks stock"| node_menus
node_stockreserve -->|"records changes"| node_stocklog
node_transactions -->|"manages details"| node_txndetail
node_transactions -->|"handles QRIS"| node_midtrans
node_midtrans -.->|"requests payment"| node_gateway
node_menuadmin -.->|"manages catalog"| node_menus
node_staffops -.->|"records attendance"| node_staffrecords
node_admin -.->|"offers management"| node_menuadmin
node_owner -.->|"views sales"| node_reports
node_owner -->|"views forecasts"| node_forecast
node_forecast -.->|"uses forecasts"| node_forecastengine
node_assistantui -.->|"uses components"| node_assistantjs
node_assistantjs -.->|"requests insights"| node_assistantapi
node_assistantjs -.->|"requests chat"| node_localai
node_assistantapi -->|"queries analytics"| node_analytics
node_ownerai -->|"loads forecast data"| node_forecast
node_localai -->|"streams chat"| node_ollama
node_auth -->|"authenticates users"| node_users
node_auth -->|"records events"| node_securitylog
node_roles -.->|"checks roles"| node_users

click node_posui "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/views/kasir/index.blade.php"
click node_posjs "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/js/jimny-pos-components.js"
click node_transactions "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/TransactionController.php"
click node_txnstore "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Transaction.php"
click node_txndetail "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/TransactionDetail.php"
click node_stockreserve "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/StockReservationService.php"
click node_stocklog "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/StockLog.php"
click node_payment "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/PaymentService.php"
click node_midtrans "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/MidtransService.php"
click node_menus "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Menu.php"
click node_menuadmin "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/MenuController.php"
click node_staffops "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/AttendanceController.php"
click node_staffrecords "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Attendance.php"
click node_admin "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/AdminController.php"
click node_reports "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/LaporanController.php"
click node_owner "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/OwnerController.php"
click node_forecast "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/JimnyOwnerV20Service.php"
click node_forecastengine "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Support/JimnyOwnerForecast.php"
click node_assistantui "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/views/components/smart-assistant.blade.php"
click node_assistantjs "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/js/jimny-smart-assistant.js"
click node_assistantapi "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/SmartAssistantController.php"
click node_ownerai "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/JimnyOwnerV20Controller.php"
click node_localai "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/JimnyLocalAiController.php"
click node_analytics "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/JsaAnalyticsService.php"
click node_auth "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_users "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/User.php"
click node_roles "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Middleware/RoleMiddleware.php"
click node_securitylog "https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Support/SecurityEventLogger.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_posui,node_posjs,node_transactions,node_txnstore,node_txndetail,node_stockreserve,node_stocklog,node_payment,node_midtrans toneBlue
class node_menus,node_menuadmin,node_staffops,node_staffrecords,node_admin toneAmber
class node_reports,node_owner,node_forecast,node_forecastengine toneMint
class node_assistantui,node_assistantjs,node_assistantapi,node_ownerai,node_localai,node_analytics toneRose
class node_auth,node_users,node_roles,node_securitylog,node_cashier,node_gateway,node_ollama toneIndigo
```

## Components

### POS and Payments

- [POS Interface](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/views/kasir/index.blade.php): `jimny-coffee/resources/views/kasir/index.blade.php`
- [POS Components](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/js/jimny-pos-components.js): `jimny-coffee/resources/js/jimny-pos-components.js`
- [Transactions](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/TransactionController.php): `jimny-coffee/app/Http/Controllers/TransactionController.php`
- [Transaction Records](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Transaction.php): `jimny-coffee/app/Models/Transaction.php`
- [Order Details](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/TransactionDetail.php): `jimny-coffee/app/Models/TransactionDetail.php`
- [Stock Reservation](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/StockReservationService.php): `jimny-coffee/app/Services/StockReservationService.php`
- [Stock Logs](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/StockLog.php): `jimny-coffee/app/Models/StockLog.php`
- [Payment Handling](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/PaymentService.php): `jimny-coffee/app/Services/PaymentService.php`
- [Midtrans Gateway](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/MidtransService.php): `jimny-coffee/app/Services/MidtransService.php`

### Store Operations

- [Menu Catalog](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Menu.php): `jimny-coffee/app/Models/Menu.php`
- [Menu Management](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/MenuController.php): `jimny-coffee/app/Http/Controllers/MenuController.php`
- [Staff Operations](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/AttendanceController.php): `jimny-coffee/app/Http/Controllers/AttendanceController.php`
- [Staff Records](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/Attendance.php): `jimny-coffee/app/Models/Attendance.php`
- [Admin Tools](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/AdminController.php): `jimny-coffee/app/Http/Controllers/AdminController.php`

### Owner Intelligence

- [Sales Reports](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/LaporanController.php): `jimny-coffee/app/Http/Controllers/LaporanController.php`
- [Owner Dashboard](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/OwnerController.php): `jimny-coffee/app/Http/Controllers/OwnerController.php`
- [Forecasting](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/JimnyOwnerV20Service.php): `jimny-coffee/app/Services/JimnyOwnerV20Service.php`
- [Forecast Engine](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Support/JimnyOwnerForecast.php): `jimny-coffee/app/Support/JimnyOwnerForecast.php`

### Smart Assistant

- [Assistant Interface](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/views/components/smart-assistant.blade.php): `jimny-coffee/resources/views/components/smart-assistant.blade.php`
- [Assistant Components](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/resources/js/jimny-smart-assistant.js): `jimny-coffee/resources/js/jimny-smart-assistant.js`
- [POS Assistant](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/SmartAssistantController.php): `jimny-coffee/app/Http/Controllers/SmartAssistantController.php`
- [Owner Assistant](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/JimnyOwnerV20Controller.php): `jimny-coffee/app/Http/Controllers/JimnyOwnerV20Controller.php`
- [Local AI Responses](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/JimnyLocalAiController.php): `jimny-coffee/app/Http/Controllers/JimnyLocalAiController.php`
- [POS Analytics](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Services/JsaAnalyticsService.php): `jimny-coffee/app/Services/JsaAnalyticsService.php`

### Access and Security

- [Authentication](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `jimny-coffee/app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [User Accounts](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Models/User.php): `jimny-coffee/app/Models/User.php`
- [Role Access](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Http/Middleware/RoleMiddleware.php): `jimny-coffee/app/Http/Middleware/RoleMiddleware.php`
- [Security Events](https://github.com/satar2007/proyek-informatika/blob/main/jimny-coffee/app/Support/SecurityEventLogger.php): `jimny-coffee/app/Support/SecurityEventLogger.php`

### Other components

- **Cashier**
- **Midtrans**
- **Ollama**

## Connections

- Cashier → POS Interface: enters orders
- POS Interface → POS Components: uses controls
- POS Interface → Transactions: submits transactions
- Transactions → Transaction Records: reads and updates (evidence: `jimny-coffee/app/Http/Controllers/TransactionController.php`)
- Transactions → Stock Reservation: reserves stock (evidence: `jimny-coffee/app/Http/Controllers/TransactionController.php`)
- Stock Reservation → Menu Catalog: checks stock (evidence: `jimny-coffee/app/Services/StockReservationService.php`)
- Stock Reservation → Stock Logs: records changes (evidence: `jimny-coffee/app/Services/StockReservationService.php`)
- Transactions → Order Details: manages details (evidence: `jimny-coffee/app/Http/Controllers/TransactionController.php`)
- Transactions → Midtrans Gateway: handles QRIS (evidence: `jimny-coffee/app/Http/Controllers/TransactionController.php`)
- Midtrans Gateway → Midtrans: requests payment (evidence: `jimny-coffee/app/Services/MidtransService.php`)
- Menu Management → Menu Catalog: manages catalog
- Staff Operations → Staff Records: records attendance
- Admin Tools → Menu Management: offers management
- Owner Dashboard → Sales Reports: views sales
- Owner Dashboard → Forecasting: views forecasts
- Forecasting → Forecast Engine: uses forecasts
- Assistant Interface → Assistant Components: uses components
- Assistant Components → POS Assistant: requests insights
- Assistant Components → Local AI Responses: requests chat
- POS Assistant → POS Analytics: queries analytics (evidence: `jimny-coffee/app/Http/Controllers/SmartAssistantController.php`)
- Owner Assistant → Forecasting: loads forecast data (evidence: `jimny-coffee/app/Http/Controllers/JimnyOwnerV20Controller.php`)
- Local AI Responses → Ollama: streams chat (evidence: `jimny-coffee/app/Http/Controllers/JimnyLocalAiController.php`)
- Authentication → User Accounts: authenticates users (evidence: `jimny-coffee/app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Authentication → Security Events: records events (evidence: `jimny-coffee/app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Role Access → User Accounts: checks roles
