# counterstrikesharp-panel/css-bans architecture

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

- Interactive diagram: https://gitdiagram.com/counterstrikesharp-panel/css-bans
- Repository: https://github.com/counterstrikesharp-panel/css-bans

## Overview

CSS-BANS is a Laravel admin panel for managing Counter-Strike 2 servers. The principal workflow is an administrator entering the panel, managing server actions and records, and viewing the resulting server/player data. Distinct product stages include access and permissions, administration and moderation, server control, and optional modules such as ranks, VIP, skins, appeals, reports, demos, and activity logs. Edges are limited to relationships visible in excerpts or the README; dashed links indicate workflow relationships whose implementation wiring was not sampled.

Main entry points: [`routes/web.php`](https://github.com/counterstrikesharp-panel/css-bans/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/Appeal/AppealController.php`](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Appeal/AppealController.php) (Ban appeals), [`app/Http/Controllers/AdminController.php`](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/AdminController.php) (Admin and groups), [`app/Http/Controllers/BansController.php`](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/BansController.php) (Bans and mutes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Audit"]
  node_routes["Web routes<br/>[web.php]"]
  node_admin_middleware["Admin access<br/>[Admin.php]"]
  node_audit_helper["Activity logging<br/>[AdminLogHelper.php]"]
  node_audit_records[("Activity records<br/>[AdminLog.php]")]
end

subgraph group_moderation["Admin and Moderation"]
  node_admin_controller["Admin and groups"]
  node_admin_records[("Admin records<br/>[SaAdmin.php]")]
  node_ban_mute["Bans and mutes<br/>[BansController.php]"]
  node_ban_model[("Ban records<br/>[SaBan.php]")]
  node_mute_model[("Mute records<br/>[SaMute.php]")]
end

subgraph group_servers["Server Operations"]
  node_dashboard["Dashboard and stats"]
  node_server_controller["Server and players"]
  node_server_model[("Server records<br/>[SaServer.php]")]
  node_rcon_controller["RCON panel<br/>[RconController.php]"]
  node_rcon_service["RCON client<br/>[RconService.php]"]
  node_demos["Demo management"]
end

subgraph group_modules["Game Modules"]
  node_ranks["K4 ranks and stats"]
  node_rank_storage[("Rank player storage")]
  node_vip["VIP management<br/>[VIPController.php]"]
  node_vip_records[("VIP records<br/>[VIP.php]")]
  node_skins["Weapon skins"]
end

subgraph group_support["Player Support"]
  node_appeals["Ban appeals"]
  node_appeal_records[("Appeal records<br/>[Appeal.php]")]
  node_reports["Player reports"]
  node_report_records[("Report records<br/>[Report.php]")]
end

node_admin(("Administrator"))
node_game_servers{{"CS2 servers"}}
node_steam{{"Steam profiles"}}

node_admin -.->|"uses panel"| node_routes
node_routes -.->|"dispatches"| node_admin_controller
node_routes -.->|"dispatches"| node_ban_mute
node_routes -.->|"dispatches"| node_dashboard
node_routes -.->|"dispatches"| node_server_controller
node_routes -.->|"dispatches"| node_rcon_controller
node_routes -.->|"dispatches"| node_ranks
node_routes -.->|"dispatches"| node_vip
node_routes -.->|"dispatches"| node_skins
node_routes -.->|"dispatches"| node_appeals
node_routes -.->|"dispatches"| node_reports
node_admin_controller -->|"reads and writes"| node_admin_records
node_admin_controller -.->|"logs actions"| node_audit_helper
node_audit_helper -->|"creates records"| node_audit_records
node_ban_mute -.->|"manages"| node_ban_model
node_ban_mute -.->|"manages"| node_mute_model
node_admin -.->|"passes access check"| node_admin_middleware
node_dashboard -.->|"reads server data"| node_server_model
node_server_controller -.->|"reads server data"| node_server_model
node_rcon_controller -->|"calls"| node_rcon_service
node_rcon_controller -->|"reads server"| node_server_model
node_rcon_service -.->|"sends commands"| node_game_servers
node_ranks -->|"queries"| node_rank_storage
node_ranks -->|"looks up profiles"| node_steam
node_vip -->|"manages"| node_vip_records
node_appeals -->|"creates and updates"| node_appeal_records
node_appeals -->|"checks active bans"| node_ban_model
node_appeals -->|"logs status"| node_audit_helper
node_reports -->|"manages"| node_report_records
node_demos -.->|"manages demos"| node_game_servers

click node_routes "https://github.com/counterstrikesharp-panel/css-bans/blob/main/routes/web.php"
click node_admin_middleware "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Middleware/Admin.php"
click node_admin_controller "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/AdminController.php"
click node_admin_records "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaAdmin.php"
click node_ban_mute "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/BansController.php"
click node_ban_model "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaBan.php"
click node_mute_model "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaMute.php"
click node_audit_helper "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Helpers/AdminLogHelper.php"
click node_audit_records "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/AdminLog.php"
click node_dashboard "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/DashboardController.php"
click node_server_controller "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/ServerController.php"
click node_server_model "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaServer.php"
click node_rcon_controller "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Rcon/RconController.php"
click node_rcon_service "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Services/RconService.php"
click node_ranks "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/K4Ranks/RanksController.php"
click node_rank_storage "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/K4Ranks/ZenithPlayerStorage.php"
click node_vip "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/VIP/VIPController.php"
click node_vip_records "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/VIP/VIP.php"
click node_skins "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/WeaponSkinController.php"
click node_appeals "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Appeal/AppealController.php"
click node_appeal_records "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/Appeal/Appeal.php"
click node_reports "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Report/ReportController.php"
click node_report_records "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/Report/Report.php"
click node_demos "https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/DemosController.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,node_admin_middleware,node_audit_helper,node_audit_records toneBlue
class node_admin_controller,node_admin_records,node_ban_mute,node_ban_model,node_mute_model toneAmber
class node_dashboard,node_server_controller,node_server_model,node_rcon_controller,node_rcon_service,node_demos,node_game_servers toneMint
class node_ranks,node_rank_storage,node_vip,node_vip_records,node_skins toneRose
class node_appeals,node_appeal_records,node_reports,node_report_records,node_admin,node_steam toneIndigo
```

## Components

### Access and Audit

- [Web routes](https://github.com/counterstrikesharp-panel/css-bans/blob/main/routes/web.php): `routes/web.php`
- [Admin access](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Middleware/Admin.php): `app/Http/Middleware/Admin.php`
- [Activity logging](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Helpers/AdminLogHelper.php): `app/Helpers/AdminLogHelper.php`
- [Activity records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/AdminLog.php): `app/Models/AdminLog.php`

### Admin and Moderation

- [Admin and groups](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Admin records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaAdmin.php): `app/Models/SaAdmin.php`
- [Bans and mutes](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/BansController.php): `app/Http/Controllers/BansController.php`
- [Ban records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaBan.php): `app/Models/SaBan.php`
- [Mute records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaMute.php): `app/Models/SaMute.php`

### Server Operations

- [Dashboard and stats](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Server and players](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/ServerController.php): `app/Http/Controllers/ServerController.php`
- [Server records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/SaServer.php): `app/Models/SaServer.php`
- [RCON panel](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Rcon/RconController.php): `app/Http/Controllers/Rcon/RconController.php`
- [RCON client](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Services/RconService.php): `app/Services/RconService.php`
- [Demo management](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/DemosController.php): `app/Http/Controllers/DemosController.php`

### Game Modules

- [K4 ranks and stats](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/K4Ranks/RanksController.php): `app/Http/Controllers/K4Ranks/RanksController.php`
- [Rank player storage](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/K4Ranks/ZenithPlayerStorage.php): `app/Models/K4Ranks/ZenithPlayerStorage.php`
- [VIP management](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/VIP/VIPController.php): `app/Http/Controllers/VIP/VIPController.php`
- [VIP records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/VIP/VIP.php): `app/Models/VIP/VIP.php`
- [Weapon skins](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/WeaponSkinController.php): `app/Http/Controllers/WeaponSkinController.php`

### Player Support

- [Ban appeals](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Appeal/AppealController.php): `app/Http/Controllers/Appeal/AppealController.php`
- [Appeal records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/Appeal/Appeal.php): `app/Models/Appeal/Appeal.php`
- [Player reports](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Http/Controllers/Report/ReportController.php): `app/Http/Controllers/Report/ReportController.php`
- [Report records](https://github.com/counterstrikesharp-panel/css-bans/blob/main/app/Models/Report/Report.php): `app/Models/Report/Report.php`

### Other components

- **Administrator**
- **CS2 servers**
- **Steam profiles**

## Connections

- Administrator → Web routes: uses panel
- Web routes → Admin and groups: dispatches
- Web routes → Bans and mutes: dispatches
- Web routes → Dashboard and stats: dispatches
- Web routes → Server and players: dispatches
- Web routes → RCON panel: dispatches
- Web routes → K4 ranks and stats: dispatches
- Web routes → VIP management: dispatches
- Web routes → Weapon skins: dispatches
- Web routes → Ban appeals: dispatches
- Web routes → Player reports: dispatches
- Admin and groups → Admin records: reads and writes (evidence: `app/Http/Controllers/AdminController.php`)
- Admin and groups → Activity logging: logs actions (evidence: `app/Http/Controllers/AdminController.php`)
- Activity logging → Activity records: creates records (evidence: `app/Helpers/AdminLogHelper.php`)
- Bans and mutes → Ban records: manages
- Bans and mutes → Mute records: manages
- Administrator → Admin access: passes access check
- Dashboard and stats → Server records: reads server data
- Server and players → Server records: reads server data
- RCON panel → RCON client: calls (evidence: `app/Http/Controllers/Rcon/RconController.php`)
- RCON panel → Server records: reads server (evidence: `app/Http/Controllers/Rcon/RconController.php`)
- RCON client → CS2 servers: sends commands
- K4 ranks and stats → Rank player storage: queries (evidence: `app/Http/Controllers/K4Ranks/RanksController.php`)
- K4 ranks and stats → Steam profiles: looks up profiles (evidence: `app/Http/Controllers/K4Ranks/RanksController.php`)
- VIP management → VIP records: manages (evidence: `app/Http/Controllers/VIP/VIPController.php`)
- Ban appeals → Appeal records: creates and updates (evidence: `app/Http/Controllers/Appeal/AppealController.php`)
- Ban appeals → Ban records: checks active bans (evidence: `app/Http/Controllers/Appeal/AppealController.php`)
- Ban appeals → Activity logging: logs status (evidence: `app/Http/Controllers/Appeal/AppealController.php`)
- Player reports → Report records: manages (evidence: `app/Http/Controllers/Report/ReportController.php`)
- Demo management → CS2 servers: manages demos
