# dinzcoy/sigap-laravel architecture

> Architecture diagram of the GitHub repository dinzcoy/sigap-laravel, 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/dinzcoy/sigap-laravel
- Repository: https://github.com/dinzcoy/sigap-laravel

## Overview

SIGAP is a BPS web system for PC monitoring and IT service, asset, and ticket management. Its principal flow is a Windows Agent sending PC reports to the API, where reports update monitoring data and can synchronize linked asset, ownership, and software information; staff then use role-specific dashboards and workflows. Web users also authenticate by role and manage tickets and assets, while administrators configure settings and export operational data. Edges reflect excerpts, SOURCE INDEX references, or README statements; several documented capabilities lack sampled implementation details.

Main entry points: [`app/Http/Controllers/PcReportController.php`](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/PcReportController.php) (PC Report API), [`app/Models/Asset.php`](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/Asset.php) (Asset and Room Data), [`app/Services/Dashboard/DashboardStatsService.php`](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Dashboard/DashboardStatsService.php) (Dashboard Analytics), [`app/Services/Ticket/TicketService.php`](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Ticket/TicketService.php) (Ticket Workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and API"]
  node_auth["Role Login"]
  node_api_access["API Access Controls<br/>[VerifyApiKey.php]"]
end

subgraph group_monitor["PC Monitoring"]
  node_report_api["PC Report API"]
  node_monitoring["PC Status<br/>[PcReport.php]"]
  node_software["Installed Software"]
  node_anomaly["Anomaly Thresholds<br/>[SystemSetting.php]"]
end

subgraph group_operations["Assets and Tickets"]
  node_assets["Asset Management"]
  node_api_assets["Asset API"]
  node_asset_loans["Asset Loans<br/>[AssetLoan.php]"]
  node_tickets["Ticket Workflows<br/>[TicketService.php]"]
  node_ticket_api["Ticket API"]
  node_ticket_policy["Ticket Permissions<br/>[AturanTiket.php]"]
  node_gamification["Technician Rewards"]
end

subgraph group_insight["Dashboards and Reports"]
  node_dashboard["Dashboard Analytics"]
  node_exports["Excel Exports"]
  node_settings["System Settings"]
end

subgraph group_persistence["Domain Data"]
  node_user_data[("User and Role Data<br/>[User.php]")]
  node_asset_data[("Asset and Room Data<br/>[Asset.php]")]
  node_ticket_data[("Ticket Data<br/>[Ticket.php]")]
  node_report_data[("PC Report Data<br/>[PcReport.php]")]
end

node_agent(("Windows Agent"))
node_staff(("Web Users"))

node_staff -->|"signs in"| node_auth
node_auth -->|"checks roles"| node_user_data
node_agent -->|"sends API key"| node_api_access
node_api_access -.->|"protects endpoint"| node_report_api
node_agent -->|"posts PC report"| node_report_api
node_report_api -->|"upserts report"| node_report_data
node_report_api -->|"looks up asset"| node_asset_data
node_report_api -->|"syncs software"| node_software
node_report_api -->|"reads thresholds"| node_anomaly
node_report_api -->|"matches username"| node_user_data
node_report_api -->|"records movements"| node_asset_loans
node_staff -.->|"manages assets"| node_assets
node_assets -->|"reads and updates"| node_asset_data
node_staff -.->|"uses asset API"| node_api_assets
node_api_assets -->|"reads and updates"| node_asset_data
node_api_assets -->|"handles loans"| node_asset_loans
node_staff -.->|"uses ticket API"| node_ticket_api
node_ticket_api -->|"creates tickets"| node_tickets
node_ticket_api -->|"gets leaderboard"| node_gamification
node_tickets -->|"creates and updates"| node_ticket_data
node_tickets -->|"links asset"| node_asset_data
node_tickets -.->|"uses authorization"| node_ticket_policy
node_gamification -->|"scores completed tickets"| node_ticket_data
node_gamification -->|"ranks technicians"| node_user_data
node_dashboard -->|"aggregates assets"| node_asset_data
node_dashboard -->|"aggregates tickets"| node_ticket_data
node_dashboard -->|"aggregates reports"| node_report_data
node_dashboard -->|"uses technician metrics"| node_gamification
node_settings -->|"starts export"| node_exports
node_settings -->|"manages thresholds"| node_anomaly
node_settings -->|"reads user data"| node_user_data
node_exports -->|"exports assets"| node_asset_data
node_exports -->|"exports tickets"| node_ticket_data
node_exports -->|"exports PC reports"| node_report_data

click node_auth "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_api_access "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Middleware/VerifyApiKey.php"
click node_report_api "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/PcReportController.php"
click node_monitoring "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/PcReport.php"
click node_software "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/InstalledSoftware.php"
click node_anomaly "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/SystemSetting.php"
click node_assets "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/AssetController.php"
click node_api_assets "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Api/AssetController.php"
click node_asset_loans "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/AssetLoan.php"
click node_tickets "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Ticket/TicketService.php"
click node_ticket_api "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Api/TicketController.php"
click node_ticket_policy "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Policies/AturanTiket.php"
click node_gamification "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Gamification/GamificationService.php"
click node_dashboard "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Dashboard/DashboardStatsService.php"
click node_exports "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Exports/Super/SystemSuperExport.php"
click node_settings "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/SettingsController.php"
click node_user_data "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/User.php"
click node_asset_data "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/Asset.php"
click node_ticket_data "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/Ticket.php"
click node_report_data "https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/PcReport.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,node_api_access,node_staff toneBlue
class node_report_api,node_monitoring,node_software,node_anomaly toneAmber
class node_assets,node_api_assets,node_asset_loans,node_tickets,node_ticket_api,node_ticket_policy,node_gamification toneMint
class node_dashboard,node_exports,node_settings toneRose
class node_user_data,node_asset_data,node_ticket_data,node_report_data,node_agent toneIndigo
```

## Components

### Access and API

- [Role Login](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [API Access Controls](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Middleware/VerifyApiKey.php): `app/Http/Middleware/VerifyApiKey.php`

### PC Monitoring

- [PC Report API](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/PcReportController.php): `app/Http/Controllers/PcReportController.php`
- [PC Status](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/PcReport.php): `app/Models/PcReport.php`
- [Installed Software](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/InstalledSoftware.php): `app/Models/InstalledSoftware.php`
- [Anomaly Thresholds](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/SystemSetting.php): `app/Models/SystemSetting.php`

### Assets and Tickets

- [Asset Management](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/AssetController.php): `app/Http/Controllers/AssetController.php`
- [Asset API](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Api/AssetController.php): `app/Http/Controllers/Api/AssetController.php`
- [Asset Loans](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/AssetLoan.php): `app/Models/AssetLoan.php`
- [Ticket Workflows](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Ticket/TicketService.php): `app/Services/Ticket/TicketService.php`
- [Ticket API](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/Api/TicketController.php): `app/Http/Controllers/Api/TicketController.php`
- [Ticket Permissions](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Policies/AturanTiket.php): `app/Policies/AturanTiket.php`
- [Technician Rewards](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Gamification/GamificationService.php): `app/Services/Gamification/GamificationService.php`

### Dashboards and Reports

- [Dashboard Analytics](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Services/Dashboard/DashboardStatsService.php): `app/Services/Dashboard/DashboardStatsService.php`
- [Excel Exports](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Exports/Super/SystemSuperExport.php): `app/Exports/Super/SystemSuperExport.php`
- [System Settings](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Http/Controllers/SettingsController.php): `app/Http/Controllers/SettingsController.php`

### Domain Data

- [User and Role Data](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/User.php): `app/Models/User.php`
- [Asset and Room Data](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/Asset.php): `app/Models/Asset.php`
- [Ticket Data](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/Ticket.php): `app/Models/Ticket.php`
- [PC Report Data](https://github.com/dinzcoy/sigap-laravel/blob/main/app/Models/PcReport.php): `app/Models/PcReport.php`

### Other components

- **Windows Agent**
- **Web Users**

## Connections

- Web Users → Role Login: signs in
- Role Login → User and Role Data: checks roles (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Windows Agent → API Access Controls: sends API key (evidence: `README.md`)
- API Access Controls → PC Report API: protects endpoint
- Windows Agent → PC Report API: posts PC report (evidence: `README.md`)
- PC Report API → PC Report Data: upserts report (evidence: `app/Http/Controllers/PcReportController.php`)
- PC Report API → Asset and Room Data: looks up asset (evidence: `app/Http/Controllers/PcReportController.php`)
- PC Report API → Installed Software: syncs software (evidence: `app/Http/Controllers/PcReportController.php`)
- PC Report API → Anomaly Thresholds: reads thresholds (evidence: `app/Http/Controllers/PcReportController.php`)
- PC Report API → User and Role Data: matches username (evidence: `app/Http/Controllers/PcReportController.php`)
- PC Report API → Asset Loans: records movements (evidence: `app/Http/Controllers/PcReportController.php`)
- Web Users → Asset Management: manages assets
- Asset Management → Asset and Room Data: reads and updates (evidence: `app/Http/Controllers/AssetController.php`)
- Web Users → Asset API: uses asset API
- Asset API → Asset and Room Data: reads and updates (evidence: `app/Http/Controllers/Api/AssetController.php`)
- Asset API → Asset Loans: handles loans (evidence: `app/Http/Controllers/Api/AssetController.php`)
- Web Users → Ticket API: uses ticket API
- Ticket API → Ticket Workflows: creates tickets (evidence: `app/Http/Controllers/Api/TicketController.php`)
- Ticket API → Technician Rewards: gets leaderboard (evidence: `app/Http/Controllers/Api/TicketController.php`)
- Ticket Workflows → Ticket Data: creates and updates (evidence: `app/Services/Ticket/TicketService.php`)
- Ticket Workflows → Asset and Room Data: links asset (evidence: `app/Services/Ticket/TicketService.php`)
- Ticket Workflows → Ticket Permissions: uses authorization
- Technician Rewards → Ticket Data: scores completed tickets (evidence: `app/Services/Gamification/GamificationService.php`)
- Technician Rewards → User and Role Data: ranks technicians (evidence: `app/Services/Gamification/GamificationService.php`)
- Dashboard Analytics → Asset and Room Data: aggregates assets (evidence: `app/Services/Dashboard/DashboardStatsService.php`)
- Dashboard Analytics → Ticket Data: aggregates tickets (evidence: `app/Services/Dashboard/DashboardStatsService.php`)
- Dashboard Analytics → PC Report Data: aggregates reports (evidence: `app/Services/Dashboard/DashboardStatsService.php`)
- Dashboard Analytics → Technician Rewards: uses technician metrics (evidence: `app/Services/Dashboard/DashboardStatsService.php`)
- System Settings → Excel Exports: starts export (evidence: `app/Http/Controllers/SettingsController.php`)
- System Settings → Anomaly Thresholds: manages thresholds (evidence: `app/Http/Controllers/SettingsController.php`)
- System Settings → User and Role Data: reads user data (evidence: `app/Http/Controllers/SettingsController.php`)
- Excel Exports → Asset and Room Data: exports assets (evidence: `app/Exports/Super/SystemSuperExport.php`)
- Excel Exports → Ticket Data: exports tickets (evidence: `app/Exports/Super/SystemSuperExport.php`)
- Excel Exports → PC Report Data: exports PC reports (evidence: `app/Exports/Super/SystemSuperExport.php`)
