# muhamadrizkiramdhani/sipakem architecture

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

- Interactive diagram: https://gitdiagram.com/muhamadrizkiramdhani/sipakem
- Repository: https://github.com/muhamadrizkiramdhani/sipakem

## Overview

This is a Laravel student-activity and SKPI application. Users log in or register; students submit certificate and SKPI applications and review their history, while administrators and managers maintain student and academic data and process submissions. Certificate submissions are scored using category, subcategory, and level rules; the source also shows role-specific dashboards and student import/export capabilities. The graph reflects sampled controller/model behavior and route references in the source index; unsampled controller details are represented only where those references support them.

Main entry points: [`app/Http/Controllers/PengajuanController.php`](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PengajuanController.php) (Application workflow), [`routes/web.php`](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/routes/web.php) (Web routes), [`app/Models/PointRules.php`](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PointRules.php) (Point rules), [`app/Http/Controllers/AuthController.php`](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/AuthController.php) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboards"]
  node_routes["Web routes<br/>[web.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_rolecheck["Role checks<br/>[RoleMiddleware.php]"]
  node_dashboards["Role dashboards"]
  node_user["User accounts<br/>[User.php]"]
end

subgraph group_records["Academic records"]
  node_student["Student records"]
  node_studentmodel["Student model<br/>[Mahasiswa.php]"]
  node_importer["Student import"]
  node_faculty["Faculties<br/>[Fakultas.php]"]
  node_program["Study programs<br/>[Prodi.php]"]
end

subgraph group_applications["Applications and scoring"]
  node_submission["Application workflow"]
  node_certmodel["Certificate applications"]
  node_skpimodel["SKPI applications<br/>[PengajuanSKPI.php]"]
  node_scoring["Point rules<br/>[PointRules.php]"]
  node_category["Categories<br/>[Kategori.php]"]
  node_subcategory["Subcategories<br/>[SubKategori.php]"]
  node_level["Activity levels<br/>[Level.php]"]
  node_review["Certificate review"]
end

subgraph group_operations["Administration"]
  node_adminops["Admin management"]
  node_catalogops["Academic catalogs"]
  node_ruleops["Rule management"]
  node_views["Role-based pages"]
end

node_visitor(("User"))

node_visitor -->|"requests pages"| node_routes
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_dashboards
node_routes -->|"routes to"| node_submission
node_routes -->|"routes to"| node_student
node_auth -->|"creates and checks"| node_user
node_auth -->|"registers"| node_studentmodel
node_auth -->|"loads options"| node_faculty
node_auth -->|"loads options"| node_program
node_dashboards -->|"reads summaries"| node_studentmodel
node_student -->|"manages records"| node_studentmodel
node_student -->|"loads programs"| node_program
node_student -->|"loads faculties"| node_faculty
node_student -->|"imports spreadsheet"| node_importer
node_studentmodel -->|"belongs to"| node_program
node_program -->|"belongs to"| node_faculty
node_submission -->|"loads categories"| node_category
node_submission -->|"loads subcategories"| node_subcategory
node_submission -->|"loads levels"| node_level
node_submission -->|"looks up points"| node_scoring
node_submission -->|"creates and reads"| node_certmodel
node_submission -->|"creates and reads"| node_skpimodel
node_submission -->|"renders student pages"| node_views
node_review -->|"reviews applications"| node_certmodel
node_review -->|"uses point rules"| node_scoring
node_certmodel -->|"belongs to student"| node_studentmodel
node_scoring -->|"references category"| node_category
node_scoring -->|"references subcategory"| node_subcategory
node_scoring -->|"references level"| node_level
node_adminops -->|"manages accounts"| node_user
node_catalogops -->|"manages faculties"| node_faculty
node_ruleops -->|"manages scoring"| node_scoring
node_ruleops -->|"loads categories"| node_category
node_ruleops -->|"loads subcategories"| node_subcategory
node_ruleops -->|"loads levels"| node_level
node_routes -.->|"registers middleware"| node_rolecheck

click node_routes "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/routes/web.php"
click node_auth "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/AuthController.php"
click node_rolecheck "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Middleware/RoleMiddleware.php"
click node_dashboards "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/DashboardController.php"
click node_user "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/User.php"
click node_student "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/MahasiswaController.php"
click node_studentmodel "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Mahasiswa.php"
click node_importer "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Imports/MahasiswaImport.php"
click node_faculty "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Fakultas.php"
click node_program "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Prodi.php"
click node_submission "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PengajuanController.php"
click node_certmodel "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PengajuanSertifikat.php"
click node_skpimodel "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PengajuanSKPI.php"
click node_scoring "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PointRules.php"
click node_category "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Kategori.php"
click node_subcategory "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/SubKategori.php"
click node_level "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Level.php"
click node_review "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PengajuanSertifikatController.php"
click node_adminops "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/AdminController.php"
click node_catalogops "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/FakultasController.php"
click node_ruleops "https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PointRulesController.php"
click node_views "https://github.com/muhamadrizkiramdhani/sipakem/tree/main/resources/views"

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_auth,node_rolecheck,node_dashboards,node_user,node_visitor toneBlue
class node_student,node_studentmodel,node_importer,node_faculty,node_program toneAmber
class node_submission,node_certmodel,node_skpimodel,node_scoring,node_category,node_subcategory,node_level,node_review toneMint
class node_adminops,node_catalogops,node_ruleops,node_views toneRose
```

## Components

### Access and dashboards

- [Web routes](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/routes/web.php): `routes/web.php`
- [Authentication](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Role checks](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Middleware/RoleMiddleware.php): `app/Http/Middleware/RoleMiddleware.php`
- [Role dashboards](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [User accounts](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/User.php): `app/Models/User.php`

### Academic records

- [Student records](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/MahasiswaController.php): `app/Http/Controllers/MahasiswaController.php`
- [Student model](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Mahasiswa.php): `app/Models/Mahasiswa.php`
- [Student import](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Imports/MahasiswaImport.php): `app/Imports/MahasiswaImport.php`
- [Faculties](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Fakultas.php): `app/Models/Fakultas.php`
- [Study programs](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Prodi.php): `app/Models/Prodi.php`

### Applications and scoring

- [Application workflow](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PengajuanController.php): `app/Http/Controllers/PengajuanController.php`
- [Certificate applications](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PengajuanSertifikat.php): `app/Models/PengajuanSertifikat.php`
- [SKPI applications](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PengajuanSKPI.php): `app/Models/PengajuanSKPI.php`
- [Point rules](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/PointRules.php): `app/Models/PointRules.php`
- [Categories](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Kategori.php): `app/Models/Kategori.php`
- [Subcategories](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/SubKategori.php): `app/Models/SubKategori.php`
- [Activity levels](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Models/Level.php): `app/Models/Level.php`
- [Certificate review](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PengajuanSertifikatController.php): `app/Http/Controllers/PengajuanSertifikatController.php`

### Administration

- [Admin management](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Academic catalogs](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/FakultasController.php): `app/Http/Controllers/FakultasController.php`
- [Rule management](https://github.com/muhamadrizkiramdhani/sipakem/blob/main/app/Http/Controllers/PointRulesController.php): `app/Http/Controllers/PointRulesController.php`
- [Role-based pages](https://github.com/muhamadrizkiramdhani/sipakem/tree/main/resources/views): `resources/views`

### Other components

- **User**

## Connections

- User → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Role dashboards: routes to (evidence: `routes/web.php`)
- Web routes → Application workflow: routes to (evidence: `routes/web.php`)
- Web routes → Student records: routes to (evidence: `routes/web.php`)
- Authentication → User accounts: creates and checks (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Student model: registers (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Faculties: loads options (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Study programs: loads options (evidence: `app/Http/Controllers/AuthController.php`)
- Role dashboards → Student model: reads summaries (evidence: `app/Http/Controllers/DashboardController.php`)
- Student records → Student model: manages records (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Student records → Study programs: loads programs (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Student records → Faculties: loads faculties (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Student records → Student import: imports spreadsheet (evidence: `app/Http/Controllers/MahasiswaController.php`)
- Student model → Study programs: belongs to (evidence: `app/Models/Mahasiswa.php`)
- Study programs → Faculties: belongs to (evidence: `app/Models/Prodi.php`)
- Application workflow → Categories: loads categories (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → Subcategories: loads subcategories (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → Activity levels: loads levels (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → Point rules: looks up points (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → Certificate applications: creates and reads (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → SKPI applications: creates and reads (evidence: `app/Http/Controllers/PengajuanController.php`)
- Application workflow → Role-based pages: renders student pages (evidence: `app/Http/Controllers/PengajuanController.php`)
- Certificate review → Certificate applications: reviews applications (evidence: `app/Http/Controllers/PengajuanSertifikatController.php`)
- Certificate review → Point rules: uses point rules (evidence: `app/Http/Controllers/PengajuanSertifikatController.php`)
- Certificate applications → Student model: belongs to student (evidence: `app/Models/PengajuanSertifikat.php`)
- Point rules → Categories: references category (evidence: `app/Models/PointRules.php`)
- Point rules → Subcategories: references subcategory (evidence: `app/Models/PointRules.php`)
- Point rules → Activity levels: references level (evidence: `app/Models/PointRules.php`)
- Admin management → User accounts: manages accounts (evidence: `app/Http/Controllers/AdminController.php`)
- Academic catalogs → Faculties: manages faculties (evidence: `app/Http/Controllers/FakultasController.php`)
- Rule management → Point rules: manages scoring (evidence: `app/Http/Controllers/PointRulesController.php`)
- Rule management → Categories: loads categories (evidence: `app/Http/Controllers/PointRulesController.php`)
- Rule management → Subcategories: loads subcategories (evidence: `app/Http/Controllers/PointRulesController.php`)
- Rule management → Activity levels: loads levels (evidence: `app/Http/Controllers/PointRulesController.php`)
- Web routes → Role checks: registers middleware
