# hexonidproductions/kelompok3_bandungcomputer architecture

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

- Interactive diagram: https://gitdiagram.com/hexonidproductions/kelompok3_bandungcomputer
- Repository: https://github.com/hexonidproductions/kelompok3_bandungcomputer

## Overview

Bandung Computer is a Laravel application for computer-shop operations. Its apparent workflow is staff access to management screens, maintaining product and category data, recording sales that update stock, and reviewing operational information such as daily closings. The sampled code confirms authentication, product management, and transaction behavior; the tree also shows supplier, user, and dashboard areas. Several of those areas were not sampled, and web-route wiring is unavailable, so their connections are not asserted.

Main entry points: [`app/Http/Controllers/ProductController.php`](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/ProductController.php) (Product management), [`app/Http/Controllers/TransactionController.php`](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/TransactionController.php) (Transaction handling), [`routes/auth.php`](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/routes/auth.php) (Auth routes), [`app/Models/Sale.php`](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Sale.php) (Sales)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and accounts"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
  node_login["Session login"]
  node_login_request["Login validation<br/>[LoginRequest.php]"]
  node_registration["Registration"]
  node_users[("User accounts<br/>[User.php]")]
  node_user_admin["User management<br/>[UserController.php]"]
end

subgraph group_catalog["Catalog and inventory"]
  node_product_admin["Product management"]
  node_product_view["Product screen<br/>[index.blade.php]"]
  node_products[("Products<br/>[Product.php]")]
  node_categories[("Categories<br/>[Category.php]")]
  node_category_admin["Category management"]
  node_supplier_admin["Supplier management"]
  node_stock_entries[("Stock entries<br/>[StockEntry.php]")]
end

subgraph group_sales["Sales"]
  node_transactions["Transaction handling"]
  node_sales[("Sales<br/>[Sale.php]")]
  node_sale_items[("Sale items<br/>[SaleItem.php]")]
end

subgraph group_operations["Operations"]
  node_dashboard["Dashboard overview"]
  node_daily_closings["Daily closings"]
  node_closing_data[("Closing records<br/>[DailyClosing.php]")]
end

node_staff(("Staff / user"))

node_staff -->|"uses auth"| node_auth_routes
node_auth_routes -->|"routes login"| node_login
node_auth_routes -->|"routes registration"| node_registration
node_login -->|"authenticates with"| node_login_request
node_registration -->|"creates account"| node_users
node_user_admin -->|"manages accounts"| node_users
node_product_admin -->|"queries and updates"| node_products
node_product_admin -->|"loads categories"| node_categories
node_product_admin -->|"renders"| node_product_view
node_product_view -->|"submits product actions"| node_product_admin
node_transactions -->|"creates and queries"| node_sales
node_transactions -->|"creates items"| node_sale_items
node_transactions -->|"decrements stock"| node_products
node_sales -->|"has items"| node_sale_items
node_sales -->|"references staff and customer"| node_users
node_products -->|"belongs to"| node_categories
node_supplier_admin -->|"uses stock entries"| node_stock_entries

click node_auth_routes "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/routes/auth.php"
click node_login "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_login_request "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Requests/Auth/LoginRequest.php"
click node_registration "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_users "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/User.php"
click node_user_admin "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/UserController.php"
click node_product_admin "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/ProductController.php"
click node_product_view "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/resources/views/dashboard/products/index.blade.php"
click node_products "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Product.php"
click node_categories "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Category.php"
click node_category_admin "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/CategoryController.php"
click node_supplier_admin "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/SupplierController.php"
click node_stock_entries "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/StockEntry.php"
click node_transactions "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/TransactionController.php"
click node_sales "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Sale.php"
click node_sale_items "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/SaleItem.php"
click node_dashboard "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/DashboardController.php"
click node_daily_closings "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/DailyClosingController.php"
click node_closing_data "https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/DailyClosing.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_auth_routes,node_login,node_login_request,node_registration,node_users,node_user_admin,node_staff toneBlue
class node_product_admin,node_product_view,node_products,node_categories,node_category_admin,node_supplier_admin,node_stock_entries toneAmber
class node_transactions,node_sales,node_sale_items toneMint
class node_dashboard,node_daily_closings,node_closing_data toneRose
```

## Components

### Access and accounts

- [Auth routes](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/routes/auth.php): `routes/auth.php`
- [Session login](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Login validation](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Requests/Auth/LoginRequest.php): `app/Http/Requests/Auth/LoginRequest.php`
- [Registration](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [User accounts](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/User.php): `app/Models/User.php`
- [User management](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/UserController.php): `app/Http/Controllers/UserController.php`

### Catalog and inventory

- [Product management](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/ProductController.php): `app/Http/Controllers/ProductController.php`
- [Product screen](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/resources/views/dashboard/products/index.blade.php): `resources/views/dashboard/products/index.blade.php`
- [Products](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Product.php): `app/Models/Product.php`
- [Categories](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Category.php): `app/Models/Category.php`
- [Category management](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/CategoryController.php): `app/Http/Controllers/CategoryController.php`
- [Supplier management](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/SupplierController.php): `app/Http/Controllers/SupplierController.php`
- [Stock entries](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/StockEntry.php): `app/Models/StockEntry.php`

### Sales

- [Transaction handling](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/TransactionController.php): `app/Http/Controllers/TransactionController.php`
- [Sales](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/Sale.php): `app/Models/Sale.php`
- [Sale items](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/SaleItem.php): `app/Models/SaleItem.php`

### Operations

- [Dashboard overview](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Daily closings](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Http/Controllers/DailyClosingController.php): `app/Http/Controllers/DailyClosingController.php`
- [Closing records](https://github.com/hexonidproductions/kelompok3_bandungcomputer/blob/main/app/Models/DailyClosing.php): `app/Models/DailyClosing.php`

### Other components

- **Staff / user**

## Connections

- Staff / user → Auth routes: uses auth (evidence: `routes/auth.php`)
- Auth routes → Session login: routes login (evidence: `routes/auth.php`)
- Auth routes → Registration: routes registration (evidence: `routes/auth.php`)
- Session login → Login validation: authenticates with (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Registration → User accounts: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- User management → User accounts: manages accounts (evidence: `app/Http/Controllers/UserController.php`)
- Product management → Products: queries and updates (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Categories: loads categories (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Product screen: renders (evidence: `app/Http/Controllers/ProductController.php`)
- Product screen → Product management: submits product actions (evidence: `resources/views/dashboard/products/index.blade.php`)
- Transaction handling → Sales: creates and queries (evidence: `app/Http/Controllers/TransactionController.php`)
- Transaction handling → Sale items: creates items (evidence: `app/Http/Controllers/TransactionController.php`)
- Transaction handling → Products: decrements stock (evidence: `app/Http/Controllers/TransactionController.php`)
- Sales → Sale items: has items (evidence: `app/Models/Sale.php`)
- Sales → User accounts: references staff and customer (evidence: `app/Models/Sale.php`)
- Products → Categories: belongs to (evidence: `app/Models/Product.php`)
- Supplier management → Stock entries: uses stock entries (evidence: `app/Http/Controllers/SupplierController.php`)
