# marvi401/helpdesk-polindra architecture

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

- Interactive diagram: https://gitdiagram.com/marvi401/helpdesk-polindra
- Repository: https://github.com/marvi401/helpdesk-polindra

## Overview

Helpdesk Polindra is a Laravel application for campus support requests. Students select a service and submit tickets; staff and unit leaders monitor and update ticket status, while administrators manage services and other campus data. The graph highlights the ticket lifecycle, its status and comment records, and the role-based operational surfaces. The README describes the product broadly but gives few workflow details; several administrative and integration paths are therefore shown without speculative call edges.

Main entry points: [`app/Models/Tiket.php`](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Tiket.php) (Ticket record), [`app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php) (Student tickets), [`routes/web.php`](https://github.com/marvi401/helpdesk-polindra/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php`](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php) (Unit ticket handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_api_routes["API routes<br/>[api.php]"]
end

subgraph group_ticket["Ticket workflow"]
  node_student_tickets["Student tickets"]
  node_unit_tickets["Unit ticket handling"]
  node_head_tickets["Unit oversight"]
  node_admin_tickets["Admin ticket handling"]
  node_ticket_record[("Ticket record<br/>[Tiket.php]")]
  node_status_record[("Status history")]
  node_comment_record[("Ticket comments<br/>[KomentarTiket.php]")]
  node_ticket_details[("Ticket details")]
  node_api_tickets["Ticket API"]
end

subgraph group_operations["Operations"]
  node_service_record[("Service catalog<br/>[Layanan.php]")]
  node_unit_record[("Campus units<br/>[Unit.php]")]
  node_admin_data["Administrative data"]
end

subgraph group_accounts["Accounts and content"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_staff_record[("Staff profiles<br/>[Staff.php]")]
  node_student_profile[("Student profiles<br/>[Mahasiswa.php]")]
  node_article_admin["Articles and categories"]
  node_faq_admin["FAQ management<br/>[FaqController.php]"]
end

node_visitor(("Browser user"))
node_database[("MySQL / MariaDB")]

node_visitor -->|"opens"| node_web_routes
node_web_routes -->|"routes requests"| node_student_tickets
node_web_routes -->|"routes requests"| node_unit_tickets
node_web_routes -->|"routes requests"| node_head_tickets
node_web_routes -->|"routes requests"| node_admin_tickets
node_web_routes -->|"routes login"| node_auth
node_visitor -->|"calls API"| node_api_routes
node_api_routes -->|"routes requests"| node_api_tickets
node_student_tickets -->|"loads services"| node_service_record
node_student_tickets -->|"creates and loads"| node_ticket_record
node_student_tickets -->|"creates details"| node_ticket_details
node_student_tickets -->|"loads student data"| node_student_profile
node_student_tickets -->|"renders ticket pages"| node_ticket_record
node_unit_tickets -->|"updates tickets"| node_ticket_record
node_unit_tickets -->|"records status"| node_status_record
node_unit_tickets -->|"records comments"| node_comment_record
node_head_tickets -->|"loads tickets"| node_ticket_record
node_head_tickets -->|"records status"| node_status_record
node_head_tickets -->|"records comments"| node_comment_record
node_ticket_record -->|"belongs to"| node_service_record
node_ticket_record -->|"tracks status"| node_status_record
node_ticket_record -->|"has comments"| node_comment_record
node_ticket_record -->|"has detail"| node_ticket_details
node_service_record -->|"belongs to"| node_unit_record
node_unit_record -->|"has staff"| node_staff_record
node_admin_data -.->|"manages services"| node_service_record
node_article_admin -.->|"manages content"| node_database
node_faq_admin -.->|"manages FAQs"| node_database
node_api_tickets -->|"works with tickets"| node_ticket_record
node_student_tickets -->|"persists records"| node_database
node_unit_tickets -->|"persists records"| node_database
node_head_tickets -->|"persists records"| node_database

click node_web_routes "https://github.com/marvi401/helpdesk-polindra/blob/main/routes/web.php"
click node_api_routes "https://github.com/marvi401/helpdesk-polindra/blob/main/routes/api.php"
click node_auth "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Auth/AuthController.php"
click node_student_tickets "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php"
click node_unit_tickets "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php"
click node_head_tickets "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php"
click node_admin_tickets "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ServiceTicketSuperAdminController.php"
click node_ticket_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Tiket.php"
click node_service_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Layanan.php"
click node_status_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/RiwayatStatusTiket.php"
click node_comment_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/KomentarTiket.php"
click node_ticket_details "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/DetailTiketReqPublikasi.php"
click node_unit_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Unit.php"
click node_staff_record "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Staff.php"
click node_admin_data "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ServiceController.php"
click node_student_profile "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Mahasiswa.php"
click node_article_admin "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ArticleController.php"
click node_faq_admin "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/FaqController.php"
click node_api_tickets "https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Api/TiketApiController.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_web_routes,node_api_routes,node_visitor toneBlue
class node_student_tickets,node_unit_tickets,node_head_tickets,node_admin_tickets,node_ticket_record,node_status_record,node_comment_record,node_ticket_details,node_api_tickets,node_database toneAmber
class node_service_record,node_unit_record,node_admin_data toneMint
class node_auth,node_staff_record,node_student_profile,node_article_admin,node_faq_admin toneRose
```

## Components

### Application entry

- [Web routes](https://github.com/marvi401/helpdesk-polindra/blob/main/routes/web.php): `routes/web.php`
- [API routes](https://github.com/marvi401/helpdesk-polindra/blob/main/routes/api.php): `routes/api.php`

### Ticket workflow

- [Student tickets](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php): `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`
- [Unit ticket handling](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php): `app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php`
- [Unit oversight](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php): `app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php`
- [Admin ticket handling](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ServiceTicketSuperAdminController.php): `app/Http/Controllers/Admin/ServiceTicketSuperAdminController.php`
- [Ticket record](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Tiket.php): `app/Models/Tiket.php`
- [Status history](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/RiwayatStatusTiket.php): `app/Models/RiwayatStatusTiket.php`
- [Ticket comments](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/KomentarTiket.php): `app/Models/KomentarTiket.php`
- [Ticket details](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/DetailTiketReqPublikasi.php): `app/Models/DetailTiketReqPublikasi.php`
- [Ticket API](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Api/TiketApiController.php): `app/Http/Controllers/Api/TiketApiController.php`

### Operations

- [Service catalog](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Layanan.php): `app/Models/Layanan.php`
- [Campus units](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Unit.php): `app/Models/Unit.php`
- [Administrative data](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ServiceController.php): `app/Http/Controllers/Admin/ServiceController.php`

### Accounts and content

- [Authentication](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Auth/AuthController.php): `app/Http/Controllers/Auth/AuthController.php`
- [Staff profiles](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Staff.php): `app/Models/Staff.php`
- [Student profiles](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Models/Mahasiswa.php): `app/Models/Mahasiswa.php`
- [Articles and categories](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/ArticleController.php): `app/Http/Controllers/Admin/ArticleController.php`
- [FAQ management](https://github.com/marvi401/helpdesk-polindra/blob/main/app/Http/Controllers/Admin/FaqController.php): `app/Http/Controllers/Admin/FaqController.php`

### Other components

- **Browser user**
- **MySQL / MariaDB**

## Connections

- Browser user → Web routes: opens (evidence: `routes/web.php`)
- Web routes → Student tickets: routes requests (evidence: `routes/web.php`)
- Web routes → Unit ticket handling: routes requests (evidence: `routes/web.php`)
- Web routes → Unit oversight: routes requests (evidence: `routes/web.php`)
- Web routes → Admin ticket handling: routes requests (evidence: `routes/web.php`)
- Web routes → Authentication: routes login (evidence: `routes/web.php`)
- Browser user → API routes: calls API
- API routes → Ticket API: routes requests
- Student tickets → Service catalog: loads services (evidence: `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`)
- Student tickets → Ticket record: creates and loads (evidence: `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`)
- Student tickets → Ticket details: creates details (evidence: `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`)
- Student tickets → Student profiles: loads student data (evidence: `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`)
- Student tickets → Ticket record: renders ticket pages (evidence: `app/Http/Controllers/Mahasiswa/ServiceTicketStudentController.php`)
- Unit ticket handling → Ticket record: updates tickets (evidence: `app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php`)
- Unit ticket handling → Status history: records status (evidence: `app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php`)
- Unit ticket handling → Ticket comments: records comments (evidence: `app/Http/Controllers/AdminUnit/ServiceTicketAdminUnitController.php`)
- Unit oversight → Ticket record: loads tickets (evidence: `app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php`)
- Unit oversight → Status history: records status (evidence: `app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php`)
- Unit oversight → Ticket comments: records comments (evidence: `app/Http/Controllers/KepalaUnit/ServiceTicketKepalaUnitController.php`)
- Ticket record → Service catalog: belongs to (evidence: `app/Models/Tiket.php`)
- Ticket record → Status history: tracks status (evidence: `app/Models/Tiket.php`)
- Ticket record → Ticket comments: has comments (evidence: `app/Models/Tiket.php`)
- Ticket record → Ticket details: has detail (evidence: `app/Models/Tiket.php`)
- Service catalog → Campus units: belongs to (evidence: `app/Models/Layanan.php`)
- Campus units → Staff profiles: has staff (evidence: `app/Models/Unit.php`)
- Administrative data → Service catalog: manages services
- Articles and categories → MySQL / MariaDB: manages content
- FAQ management → MySQL / MariaDB: manages FAQs
- Ticket API → Ticket record: works with tickets (evidence: `app/Http/Controllers/Api/TiketApiController.php`)
- Student tickets → MySQL / MariaDB: persists records
- Unit ticket handling → MySQL / MariaDB: persists records
- Unit oversight → MySQL / MariaDB: persists records
