# noplayername/aicc-fg-ms architecture

> Architecture diagram of the GitHub repository noplayername/aicc-fg-ms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/noplayername/aicc-fg-ms
- Repository: https://github.com/noplayername/aicc-fg-ms

## Overview

This appears to be a Laravel warehouse inventory application: users manage master records and pallets, record stock movements, and view generated stock balances. The tree indicates Livewire screens alongside HTTP controllers, services, repositories, and Eloquent models. The README is the generic Laravel README and does not document product capabilities. Several screens and service flows are unsampled, so their connections are shown only as unverified dashed edges; solid edges reflect relationships visible in the provided excerpts or source index.

Main entry points: [`app/Http/Livewire`](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire) (Livewire screens), [`app/Http/Livewire/Transaksi`](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/Transaksi) (Transaction screens), [`app/Repositories/Transaction/Stock/StockRepository.php`](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Transaction/Stock/StockRepository.php) (Stock balances), [`app/Repositories/Rack/RackRepository.php`](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Rack/RackRepository.php) (Rack repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_livewire["Livewire screens"]
  node_dashboard["Dashboard<br/>[Dashboard.php]"]
  node_master_ui["Master screens"]
  node_pallet_ui["Pallet screens"]
  node_transaction_ui["Transaction screens"]
end

subgraph group_masters["Master data"]
  node_customer["Customer management"]
  node_product["Product catalog<br/>[Product.php]"]
  node_pallet["Pallet management<br/>[PalletService.php]"]
  node_rack["Rack management<br/>[RackRepository.php]"]
end

subgraph group_operations["Inventory operations"]
  node_stockin["Stock receiving<br/>[StockInService.php]"]
  node_stockout["Stock dispatch"]
  node_stockchange["Stock adjustments"]
  node_balances["Stock balances"]
  node_transaction[("Transaction records<br/>[Transaction.php]")]
  node_stockin_model[("Stock-in records<br/>[StockIn.php]")]
  node_stockout_model[("Stock-out records<br/>[StockOut.php]")]
end

subgraph group_persistence["Services and persistence"]
  node_repositories["Repository bindings"]
  node_pallet_repo["Pallet repository"]
  node_rack_repo["Rack repository<br/>[RackRepository.php]"]
  node_stockin_repo["Stock-in repository"]
  node_db[("Application database")]
end

node_user(("Warehouse user"))

node_user -.->|"uses screens"| node_livewire
node_livewire -.->|"includes"| node_dashboard
node_livewire -.->|"presents"| node_master_ui
node_livewire -.->|"presents"| node_pallet_ui
node_livewire -.->|"presents"| node_transaction_ui
node_master_ui -.->|"invokes"| node_customer
node_master_ui -.->|"manages"| node_product
node_master_ui -.->|"manages"| node_rack
node_pallet_ui -.->|"invokes"| node_pallet
node_transaction_ui -.->|"invokes"| node_stockin
node_transaction_ui -.->|"invokes"| node_stockout
node_transaction_ui -.->|"invokes"| node_stockchange
node_transaction_ui -.->|"requests balances"| node_balances
node_stockin -->|"calls"| node_stockin_repo
node_stockin -->|"updates pallet"| node_pallet_repo
node_stockin -->|"updates rack"| node_rack_repo
node_stockin_repo -->|"creates records"| node_stockin_model
node_rack_repo -->|"queries"| node_rack
node_rack_repo -->|"looks up product"| node_product
node_pallet_repo -->|"queries"| node_pallet
node_repositories -->|"binds"| node_pallet_repo
node_repositories -->|"binds"| node_rack_repo
node_repositories -->|"binds"| node_stockin_repo
node_balances -->|"reads catalog"| node_product
node_balances -->|"aggregates receipts"| node_stockin_model
node_balances -->|"aggregates dispatches"| node_stockout_model
node_balances -->|"writes balances"| node_db
node_stockin_repo -->|"reads and writes"| node_db
node_rack_repo -->|"reads and writes"| node_db
node_pallet_repo -->|"reads and writes"| node_db
node_stockchange -->|"reads and writes"| node_db

click node_livewire "https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire"
click node_dashboard "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Http/Livewire/Dashboard.php"
click node_master_ui "https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/MasterData"
click node_pallet_ui "https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/Pallet"
click node_transaction_ui "https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/Transaksi"
click node_customer "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Master/CustomerService.php"
click node_product "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Master/Product.php"
click node_pallet "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Master/PalletService.php"
click node_rack "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Rack/RackRepository.php"
click node_stockin "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Transaction/StockInService.php"
click node_stockout "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Transaction/StockOutService.php"
click node_stockchange "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/StockChange/StockChangeRepository.php"
click node_balances "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Transaction/Stock/StockRepository.php"
click node_transaction "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/Transaction.php"
click node_stockin_model "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/StockIn.php"
click node_stockout_model "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/StockOut.php"
click node_repositories "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Providers/RepositoryServiceProvider.php"
click node_pallet_repo "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Pallet/PalletRepository.php"
click node_rack_repo "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Rack/RackRepository.php"
click node_stockin_repo "https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Transaction/StockIn/StockInRepository.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_livewire,node_dashboard,node_master_ui,node_pallet_ui,node_transaction_ui,node_user toneBlue
class node_customer,node_product,node_pallet,node_rack toneAmber
class node_stockin,node_stockout,node_stockchange,node_balances,node_transaction,node_stockin_model,node_stockout_model toneMint
class node_repositories,node_pallet_repo,node_rack_repo,node_stockin_repo,node_db toneRose
```

## Components

### User experience

- [Livewire screens](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire): `app/Http/Livewire`
- [Dashboard](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Http/Livewire/Dashboard.php): `app/Http/Livewire/Dashboard.php`
- [Master screens](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/MasterData): `app/Http/Livewire/MasterData`
- [Pallet screens](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/Pallet): `app/Http/Livewire/Pallet`
- [Transaction screens](https://github.com/noplayername/aicc-fg-ms/tree/main/app/Http/Livewire/Transaksi): `app/Http/Livewire/Transaksi`

### Master data

- [Customer management](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Master/CustomerService.php): `app/Services/Master/CustomerService.php`
- [Product catalog](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Master/Product.php): `app/Models/Master/Product.php`
- [Pallet management](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Master/PalletService.php): `app/Services/Master/PalletService.php`
- [Rack management](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Rack/RackRepository.php): `app/Repositories/Rack/RackRepository.php`

### Inventory operations

- [Stock receiving](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Transaction/StockInService.php): `app/Services/Transaction/StockInService.php`
- [Stock dispatch](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Services/Transaction/StockOutService.php): `app/Services/Transaction/StockOutService.php`
- [Stock adjustments](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/StockChange/StockChangeRepository.php): `app/Repositories/StockChange/StockChangeRepository.php`
- [Stock balances](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Transaction/Stock/StockRepository.php): `app/Repositories/Transaction/Stock/StockRepository.php`
- [Transaction records](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/Transaction.php): `app/Models/Transaction/Transaction.php`
- [Stock-in records](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/StockIn.php): `app/Models/Transaction/StockIn.php`
- [Stock-out records](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Models/Transaction/StockOut.php): `app/Models/Transaction/StockOut.php`

### Services and persistence

- [Repository bindings](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Providers/RepositoryServiceProvider.php): `app/Providers/RepositoryServiceProvider.php`
- [Pallet repository](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Pallet/PalletRepository.php): `app/Repositories/Pallet/PalletRepository.php`
- [Rack repository](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Rack/RackRepository.php): `app/Repositories/Rack/RackRepository.php`
- [Stock-in repository](https://github.com/noplayername/aicc-fg-ms/blob/main/app/Repositories/Transaction/StockIn/StockInRepository.php): `app/Repositories/Transaction/StockIn/StockInRepository.php`
- **Application database**

### Other components

- **Warehouse user**

## Connections

- Warehouse user → Livewire screens: uses screens
- Livewire screens → Dashboard: includes
- Livewire screens → Master screens: presents
- Livewire screens → Pallet screens: presents
- Livewire screens → Transaction screens: presents
- Master screens → Customer management: invokes
- Master screens → Product catalog: manages
- Master screens → Rack management: manages
- Pallet screens → Pallet management: invokes
- Transaction screens → Stock receiving: invokes
- Transaction screens → Stock dispatch: invokes
- Transaction screens → Stock adjustments: invokes
- Transaction screens → Stock balances: requests balances
- Stock receiving → Stock-in repository: calls (evidence: `app/Services/Transaction/StockInService.php`)
- Stock receiving → Pallet repository: updates pallet (evidence: `app/Services/Transaction/StockInService.php`)
- Stock receiving → Rack repository: updates rack (evidence: `app/Services/Transaction/StockInService.php`)
- Stock-in repository → Stock-in records: creates records (evidence: `app/Repositories/Transaction/StockIn/StockInRepository.php`)
- Rack repository → Rack management: queries (evidence: `app/Repositories/Rack/RackRepository.php`)
- Rack repository → Product catalog: looks up product (evidence: `app/Repositories/Rack/RackRepository.php`)
- Pallet repository → Pallet management: queries (evidence: `app/Repositories/Pallet/PalletRepository.php`)
- Repository bindings → Pallet repository: binds (evidence: `app/Providers/RepositoryServiceProvider.php`)
- Repository bindings → Rack repository: binds (evidence: `app/Providers/RepositoryServiceProvider.php`)
- Repository bindings → Stock-in repository: binds (evidence: `app/Providers/RepositoryServiceProvider.php`)
- Stock balances → Product catalog: reads catalog (evidence: `app/Repositories/Transaction/Stock/StockRepository.php`)
- Stock balances → Stock-in records: aggregates receipts (evidence: `app/Repositories/Transaction/Stock/StockRepository.php`)
- Stock balances → Stock-out records: aggregates dispatches (evidence: `app/Repositories/Transaction/Stock/StockRepository.php`)
- Stock balances → Application database: writes balances (evidence: `app/Repositories/Transaction/Stock/StockRepository.php`)
- Stock-in repository → Application database: reads and writes (evidence: `app/Repositories/Transaction/StockIn/StockInRepository.php`)
- Rack repository → Application database: reads and writes (evidence: `app/Repositories/Rack/RackRepository.php`)
- Pallet repository → Application database: reads and writes (evidence: `app/Repositories/Pallet/PalletRepository.php`)
- Stock adjustments → Application database: reads and writes (evidence: `app/Repositories/StockChange/StockChangeRepository.php`)
