# adamadifa/siprenpas architecture

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

- Interactive diagram: https://gitdiagram.com/adamadifa/siprenpas
- Repository: https://github.com/adamadifa/siprenpas

## Overview

The tree indicates a Laravel school and institutional administration application, with web and API surfaces and modules for enrollment, academics, finance, staff, and cooperative savings. A representative user flow is an authenticated staff member managing a student’s enrollment and education payments; the API also supports Al Amin Got Talent registrations. The README is the default Laravel README, so it does not document product behavior. Edges are limited to relationships visible in excerpts or SOURCE INDEX references; many routes and domain modules were not sampled.

Main entry points: [`app/Models/Pendaftaran.php`](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Pendaftaran.php) (Enrollment records), [`app/Models/Siswa.php`](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Siswa.php) (Student records), [`app/Providers/RouteServiceProvider.php`](https://github.com/adamadifa/siprenpas/blob/main/app/Providers/RouteServiceProvider.php) (Route provider), [`app/Http/Controllers/PembayaranpendidikanController.php`](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/PembayaranpendidikanController.php) (Education payments)

## 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]"]
  node_route_provider["Route provider"]
end

subgraph group_identity["Identity and access"]
  node_auth_controller["Session authentication"]
  node_user["User and access<br/>[User.php]"]
end

subgraph group_enrollment["Enrollment"]
  node_student_controller["Student administration"]
  node_student[("Student records<br/>[Siswa.php]")]
  node_registration[("Enrollment records<br/>[Pendaftaran.php]")]
  node_talent_api["Talent registration API"]
end

subgraph group_academics["Academics"]
  node_academic_records[("Academic and attendance<br/>[PresensiSiswa.php]")]
  node_report_controller["Student report cards"]
end

subgraph group_finance["Finance and cooperative"]
  node_payments_controller["Education payments"]
  node_payment_models[("Payment records<br/>[Biaya.php]")]
  node_cooperative_controller["Cooperative financing"]
  node_savings_api["Student savings API"]
  node_savings_records[("Savings transactions<br/>[Tabungan.php]")]
end

node_staff(("Staff user"))

node_route_provider -->|"loads routes"| node_web_routes
node_route_provider -->|"loads routes"| node_api_routes
node_staff -.->|"authenticates"| node_auth_controller
node_staff -.->|"uses web app"| node_web_routes
node_auth_controller -->|"authenticates user"| node_user
node_student_controller -.->|"manages records"| node_student
node_student -->|"has registration"| node_registration
node_registration -->|"references student"| node_student
node_talent_api -.->|"creates registrations"| node_registration
node_report_controller -->|"reads attendance"| node_academic_records
node_payments_controller -->|"manages charges"| node_payment_models
node_payments_controller -->|"gets payment data"| node_registration
node_cooperative_controller -->|"uses user identity"| node_user
node_savings_api -->|"manages savings"| node_savings_records

click node_web_routes "https://github.com/adamadifa/siprenpas/blob/main/routes/web.php"
click node_api_routes "https://github.com/adamadifa/siprenpas/blob/main/routes/api.php"
click node_route_provider "https://github.com/adamadifa/siprenpas/blob/main/app/Providers/RouteServiceProvider.php"
click node_auth_controller "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_user "https://github.com/adamadifa/siprenpas/blob/main/app/Models/User.php"
click node_student_controller "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/SiswaController.php"
click node_student "https://github.com/adamadifa/siprenpas/blob/main/app/Models/Siswa.php"
click node_registration "https://github.com/adamadifa/siprenpas/blob/main/app/Models/Pendaftaran.php"
click node_talent_api "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Api/PendaftaranGotTalentController.php"
click node_academic_records "https://github.com/adamadifa/siprenpas/blob/main/app/Models/PresensiSiswa.php"
click node_report_controller "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/RaporSiswaController.php"
click node_payments_controller "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/PembayaranpendidikanController.php"
click node_payment_models "https://github.com/adamadifa/siprenpas/blob/main/app/Models/Biaya.php"
click node_cooperative_controller "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/PembiayaanController.php"
click node_savings_api "https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Api/TabunganSantriController.php"
click node_savings_records "https://github.com/adamadifa/siprenpas/blob/main/app/Models/Tabungan.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_route_provider,node_staff toneBlue
class node_auth_controller,node_user toneAmber
class node_student_controller,node_student,node_registration,node_talent_api toneMint
class node_academic_records,node_report_controller toneRose
class node_payments_controller,node_payment_models,node_cooperative_controller,node_savings_api,node_savings_records toneIndigo
```

## Components

### Application entry

- [Web routes](https://github.com/adamadifa/siprenpas/blob/main/routes/web.php): `routes/web.php`
- [API routes](https://github.com/adamadifa/siprenpas/blob/main/routes/api.php): `routes/api.php`
- [Route provider](https://github.com/adamadifa/siprenpas/blob/main/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`

### Identity and access

- [Session authentication](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [User and access](https://github.com/adamadifa/siprenpas/blob/main/app/Models/User.php): `app/Models/User.php`

### Enrollment

- [Student administration](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/SiswaController.php): `app/Http/Controllers/SiswaController.php`
- [Student records](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Siswa.php): `app/Models/Siswa.php`
- [Enrollment records](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Pendaftaran.php): `app/Models/Pendaftaran.php`
- [Talent registration API](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Api/PendaftaranGotTalentController.php): `app/Http/Controllers/Api/PendaftaranGotTalentController.php`

### Academics

- [Academic and attendance](https://github.com/adamadifa/siprenpas/blob/main/app/Models/PresensiSiswa.php): `app/Models/PresensiSiswa.php`
- [Student report cards](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/RaporSiswaController.php): `app/Http/Controllers/RaporSiswaController.php`

### Finance and cooperative

- [Education payments](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/PembayaranpendidikanController.php): `app/Http/Controllers/PembayaranpendidikanController.php`
- [Payment records](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Biaya.php): `app/Models/Biaya.php`
- [Cooperative financing](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/PembiayaanController.php): `app/Http/Controllers/PembiayaanController.php`
- [Student savings API](https://github.com/adamadifa/siprenpas/blob/main/app/Http/Controllers/Api/TabunganSantriController.php): `app/Http/Controllers/Api/TabunganSantriController.php`
- [Savings transactions](https://github.com/adamadifa/siprenpas/blob/main/app/Models/Tabungan.php): `app/Models/Tabungan.php`

### Other components

- **Staff user**

## Connections

- Route provider → Web routes: loads routes (evidence: `app/Providers/RouteServiceProvider.php`)
- Route provider → API routes: loads routes (evidence: `app/Providers/RouteServiceProvider.php`)
- Staff user → Session authentication: authenticates
- Staff user → Web routes: uses web app
- Session authentication → User and access: authenticates user
- Student administration → Student records: manages records
- Student records → Enrollment records: has registration (evidence: `app/Models/Siswa.php`)
- Enrollment records → Student records: references student (evidence: `app/Models/Pendaftaran.php`)
- Talent registration API → Enrollment records: creates registrations
- Student report cards → Academic and attendance: reads attendance (evidence: `app/Http/Controllers/RaporSiswaController.php`)
- Education payments → Payment records: manages charges (evidence: `app/Http/Controllers/PembayaranpendidikanController.php`)
- Education payments → Enrollment records: gets payment data (evidence: `app/Http/Controllers/PembayaranpendidikanController.php`)
- Cooperative financing → User and access: uses user identity (evidence: `app/Http/Controllers/PembiayaanController.php`)
- Student savings API → Savings transactions: manages savings (evidence: `app/Http/Controllers/Api/TabunganSantriController.php`)
