# jiescolano28-netizen/fcdc-system architecture

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

- Interactive diagram: https://gitdiagram.com/jiescolano28-netizen/fcdc-system
- Repository: https://github.com/jiescolano28-netizen/fcdc-system

## Overview

This is a Laravel operations and finance application for employees managing inventory, point-of-sale activity, demolition and recovered materials, accounting, and VAT reporting. The main workflow is an authenticated employee entering a routed application page, performing a domain operation, and working with persisted records; sampled code shows inventory movement services and accounting services as internal layers. The README documents role-based access and employee administration. Several feature components are present in the tree and routed in the excerpt, but their implementation details were not sampled, so those branches are kept at the documented subsystem level.

Main entry points: [`routes/web.php`](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/routes/web.php) (Web routes), [`app/Livewire/Accounting`](https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Livewire/Accounting) (Accounting pages), [`app/Livewire/Roles/RoleManagement.php`](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Roles/RoleManagement.php) (Role management), [`app/Livewire/Inventory/InventoryManagement.php`](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Inventory/InventoryManagement.php) (Inventory management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_routes["Web routes<br/>[web.php]"]
end

subgraph group_access["Identity and access"]
  node_employee[("Employee<br/>[Employee.php]")]
  node_login["Login"]
  node_roles["Role management<br/>[RoleManagement.php]"]
  node_role_catalog["Permission catalog"]
  node_activity["Activity log"]
end

subgraph group_operations["Operations"]
  node_inventory_ui["Inventory management"]
  node_inventory_api["Inventory API"]
  node_pos["Point of sale<br/>[PointOfSale.php]"]
  node_projects["Demolition projects"]
  node_dashboard["Dashboard and reports<br/>[ReportsPage.php]"]
end

subgraph group_finance["Finance and compliance"]
  node_accounting_ui["Accounting pages"]
  node_manual_journal["Manual journals"]
  node_opening_books["Opening books"]
  node_payables["Supplier payables"]
  node_tax_ui["VAT and tax pages"]
  node_vat_summary["Recorded VAT summary"]
end

subgraph group_shared["Domain services and records"]
  node_stock_services["Stock movement services"]
  node_inventory_records[("Inventory records<br/>[Inventory.php]")]
  node_pos_records[("POS records<br/>[PosTransaction.php]")]
  node_accounting_records[("Accounting records")]
  node_supplier_records[("Supplier records<br/>[Supplier.php]")]
  node_vat_records[("VAT records<br/>[PosVatRecord.php]")]
end

node_employee_actor(("Employee"))

node_employee_actor -->|"uses pages"| node_routes
node_routes -->|"routes login"| node_login
node_login -->|"authenticates"| node_employee
node_routes -->|"routes roles"| node_roles
node_roles -->|"manages roles"| node_employee
node_roles -->|"uses catalog"| node_role_catalog
node_routes -->|"routes inventory"| node_inventory_ui
node_routes -->|"routes inventory API"| node_inventory_api
node_inventory_api -->|"reads and writes"| node_inventory_records
node_inventory_ui -->|"uses inventory"| node_inventory_records
node_inventory_ui -->|"dispatches movements"| node_stock_services
node_routes -->|"routes checkout"| node_pos
node_pos -->|"uses stock"| node_inventory_records
node_pos -->|"records sales"| node_pos_records
node_routes -->|"routes projects"| node_projects
node_routes -->|"routes reporting"| node_dashboard
node_routes -->|"routes accounting"| node_accounting_ui
node_accounting_ui -->|"uses journal service"| node_manual_journal
node_accounting_ui -->|"uses opening service"| node_opening_books
node_accounting_ui -->|"uses payables service"| node_payables
node_manual_journal -->|"creates postings"| node_accounting_records
node_opening_books -->|"prepares opening"| node_accounting_records
node_opening_books -->|"checks schedule"| node_supplier_records
node_payables -->|"posts schedule"| node_accounting_records
node_payables -->|"maintains suppliers"| node_supplier_records
node_routes -->|"routes tax pages"| node_tax_ui
node_tax_ui -->|"uses VAT summary"| node_vat_summary
node_tax_ui -->|"reads VAT records"| node_vat_records
node_vat_summary -->|"summarizes records"| node_vat_records
node_routes -->|"routes activity log"| node_activity

click node_employee "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Employee.php"
click node_login "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Http/Controllers/LoginController.php"
click node_roles "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Roles/RoleManagement.php"
click node_role_catalog "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Support/RolePermissionCatalog.php"
click node_routes "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/routes/web.php"
click node_inventory_ui "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Inventory/InventoryManagement.php"
click node_inventory_api "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Http/Controllers/InventoryController.php"
click node_stock_services "https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Services/Inventory"
click node_inventory_records "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Inventory.php"
click node_pos "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Pos/PointOfSale.php"
click node_pos_records "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/PosTransaction.php"
click node_projects "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/DemolitionProjects/ProjectManagement.php"
click node_dashboard "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Dashboard/ReportsPage.php"
click node_accounting_ui "https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Livewire/Accounting"
click node_manual_journal "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/ManualJournalService.php"
click node_opening_books "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/OpeningBooksService.php"
click node_payables "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/SupplierPayablesService.php"
click node_accounting_records "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/AccountingJournal.php"
click node_supplier_records "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Supplier.php"
click node_tax_ui "https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Livewire/TaxCompliance"
click node_vat_summary "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/RecordedVatSummary.php"
click node_vat_records "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/PosVatRecord.php"
click node_activity "https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/ActivityLog/ActivityLogPage.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_routes toneBlue
class node_employee,node_login,node_roles,node_role_catalog,node_activity toneAmber
class node_inventory_ui,node_inventory_api,node_pos,node_projects,node_dashboard toneMint
class node_accounting_ui,node_manual_journal,node_opening_books,node_payables,node_tax_ui,node_vat_summary toneRose
class node_stock_services,node_inventory_records,node_pos_records,node_accounting_records,node_supplier_records,node_vat_records,node_employee_actor toneIndigo
```

## Components

### Application entry

- [Web routes](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/routes/web.php): `routes/web.php`

### Identity and access

- [Employee](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Employee.php): `app/Models/Employee.php`
- [Login](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Http/Controllers/LoginController.php): `app/Http/Controllers/LoginController.php`
- [Role management](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Roles/RoleManagement.php): `app/Livewire/Roles/RoleManagement.php`
- [Permission catalog](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Support/RolePermissionCatalog.php): `app/Support/RolePermissionCatalog.php`
- [Activity log](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/ActivityLog/ActivityLogPage.php): `app/Livewire/ActivityLog/ActivityLogPage.php`

### Operations

- [Inventory management](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Inventory/InventoryManagement.php): `app/Livewire/Inventory/InventoryManagement.php`
- [Inventory API](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Http/Controllers/InventoryController.php): `app/Http/Controllers/InventoryController.php`
- [Point of sale](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Pos/PointOfSale.php): `app/Livewire/Pos/PointOfSale.php`
- [Demolition projects](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/DemolitionProjects/ProjectManagement.php): `app/Livewire/DemolitionProjects/ProjectManagement.php`
- [Dashboard and reports](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Livewire/Dashboard/ReportsPage.php): `app/Livewire/Dashboard/ReportsPage.php`

### Finance and compliance

- [Accounting pages](https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Livewire/Accounting): `app/Livewire/Accounting`
- [Manual journals](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/ManualJournalService.php): `app/Services/Accounting/ManualJournalService.php`
- [Opening books](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/OpeningBooksService.php): `app/Services/Accounting/OpeningBooksService.php`
- [Supplier payables](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/Accounting/SupplierPayablesService.php): `app/Services/Accounting/SupplierPayablesService.php`
- [VAT and tax pages](https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Livewire/TaxCompliance): `app/Livewire/TaxCompliance`
- [Recorded VAT summary](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Services/RecordedVatSummary.php): `app/Services/RecordedVatSummary.php`

### Domain services and records

- [Stock movement services](https://github.com/jiescolano28-netizen/fcdc-system/tree/main/app/Services/Inventory): `app/Services/Inventory`
- [Inventory records](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Inventory.php): `app/Models/Inventory.php`
- [POS records](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/PosTransaction.php): `app/Models/PosTransaction.php`
- [Accounting records](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/AccountingJournal.php): `app/Models/AccountingJournal.php`
- [Supplier records](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/Supplier.php): `app/Models/Supplier.php`
- [VAT records](https://github.com/jiescolano28-netizen/fcdc-system/blob/main/app/Models/PosVatRecord.php): `app/Models/PosVatRecord.php`

### Other components

- **Employee**

## Connections

- Employee → Web routes: uses pages (evidence: `routes/web.php`)
- Web routes → Login: routes login (evidence: `routes/web.php`)
- Login → Employee: authenticates (evidence: `app/Http/Controllers/LoginController.php`)
- Web routes → Role management: routes roles (evidence: `routes/web.php`)
- Role management → Employee: manages roles (evidence: `app/Livewire/Roles/RoleManagement.php`)
- Role management → Permission catalog: uses catalog (evidence: `app/Livewire/Roles/RoleManagement.php`)
- Web routes → Inventory management: routes inventory (evidence: `routes/web.php`)
- Web routes → Inventory API: routes inventory API (evidence: `routes/web.php`)
- Inventory API → Inventory records: reads and writes (evidence: `app/Http/Controllers/InventoryController.php`)
- Inventory management → Inventory records: uses inventory (evidence: `app/Livewire/Inventory/InventoryManagement.php`)
- Inventory management → Stock movement services: dispatches movements (evidence: `app/Livewire/Inventory/InventoryManagement.php`)
- Web routes → Point of sale: routes checkout (evidence: `routes/web.php`)
- Point of sale → Inventory records: uses stock (evidence: `app/Livewire/Pos/PointOfSale.php`)
- Point of sale → POS records: records sales (evidence: `app/Livewire/Pos/PointOfSale.php`)
- Web routes → Demolition projects: routes projects (evidence: `routes/web.php`)
- Web routes → Dashboard and reports: routes reporting (evidence: `routes/web.php`)
- Web routes → Accounting pages: routes accounting (evidence: `routes/web.php`)
- Accounting pages → Manual journals: uses journal service
- Accounting pages → Opening books: uses opening service
- Accounting pages → Supplier payables: uses payables service (evidence: `app/Livewire/Accounting/AccountsPayable.php`)
- Manual journals → Accounting records: creates postings (evidence: `app/Services/Accounting/ManualJournalService.php`)
- Opening books → Accounting records: prepares opening (evidence: `app/Services/Accounting/OpeningBooksService.php`)
- Opening books → Supplier records: checks schedule (evidence: `app/Services/Accounting/OpeningBooksService.php`)
- Supplier payables → Accounting records: posts schedule (evidence: `app/Services/Accounting/SupplierPayablesService.php`)
- Supplier payables → Supplier records: maintains suppliers (evidence: `app/Services/Accounting/SupplierPayablesService.php`)
- Web routes → VAT and tax pages: routes tax pages (evidence: `routes/web.php`)
- VAT and tax pages → Recorded VAT summary: uses VAT summary (evidence: `app/Livewire/TaxCompliance/TaxReport.php`)
- VAT and tax pages → VAT records: reads VAT records (evidence: `app/Livewire/TaxCompliance/TaxReport.php`)
- Recorded VAT summary → VAT records: summarizes records
- Web routes → Activity log: routes activity log (evidence: `routes/web.php`)
