# rinof21/sumpahprofesi architecture

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

## Overview

This Laravel application manages professional-oath periods for study programs. Candidates register or enter through a time-limited token portal, maintain their details and materials, and access event information; program administrators manage periods, candidates and event resources, while superadmins manage programs, users and contacts. The graph follows documented routes and sampled controller/model interactions. Some controller and view implementations were not sampled, so uncertain links are omitted.

Main entry points: [`app/Http/Controllers/AdminProdiController.php`](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/AdminProdiController.php) (Program operations), [`routes/web.php`](https://github.com/rinof21/sumpahprofesi/blob/main/routes/web.php) (Web routes), [`app/Models/OathPeriod.php`](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/OathPeriod.php) (Oath periods), [`app/Http/Controllers/CandidateController.php`](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/CandidateController.php) (Candidate workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_public["Public information"]
end

subgraph group_candidate["Candidate access"]
  node_candidate_controller["Candidate workflow"]
  node_candidate_dashboard["Candidate dashboard"]
  node_candidate_ticket["e-ticket view<br/>[e-ticket.blade.php]"]
  node_token_controller["Token portal"]
  node_token_verify["Token verification view"]
  node_token_portal["Token portal view"]
end

subgraph group_program["Program administration"]
  node_admin_controller["Program operations"]
  node_candidate_export["Candidate export"]
  node_admin_views["Program admin views"]
end

subgraph group_platform["Platform administration"]
  node_superadmin_controller["Platform administration"]
  node_roles_controller["Role management"]
  node_superadmin_views["Platform admin views"]
end

subgraph group_domain["Domain records"]
  node_study_program["Study programs<br/>[StudyProgram.php]"]
  node_oath_period["Oath periods<br/>[OathPeriod.php]"]
  node_oath_candidate["Oath candidates<br/>[OathCandidate.php]"]
  node_user["Users and roles<br/>[User.php]"]
  node_contacts["Contact people<br/>[ContactPerson.php]"]
  node_event_photos["Event photos<br/>[EventPhoto.php]"]
  node_photographers["Photographers<br/>[Photographer.php]"]
end

node_web_routes -->|"routes to"| node_auth
node_web_routes -->|"routes to"| node_public
node_web_routes -->|"routes to"| node_candidate_controller
node_web_routes -->|"routes to"| node_token_controller
node_web_routes -->|"routes to"| node_admin_controller
node_web_routes -->|"routes to"| node_superadmin_controller
node_web_routes -->|"routes to"| node_roles_controller
node_candidate_controller -->|"renders"| node_candidate_dashboard
node_candidate_controller -->|"renders"| node_candidate_ticket
node_candidate_controller -->|"reads and writes"| node_oath_candidate
node_candidate_controller -->|"reads"| node_oath_period
node_candidate_controller -->|"reads"| node_contacts
node_token_controller -->|"renders"| node_token_verify
node_token_controller -->|"renders"| node_token_portal
node_token_controller -->|"reads"| node_oath_period
node_token_controller -->|"reads and writes"| node_oath_candidate
node_token_controller -->|"reads"| node_contacts
node_admin_controller -->|"renders"| node_admin_views
node_admin_controller -->|"downloads"| node_candidate_export
node_admin_controller -->|"reads and writes"| node_oath_period
node_admin_controller -->|"reads"| node_oath_candidate
node_admin_controller -->|"reads and writes"| node_photographers
node_admin_controller -->|"reads and writes"| node_contacts
node_admin_controller -->|"reads"| node_event_photos
node_superadmin_controller -->|"renders"| node_superadmin_views
node_superadmin_controller -->|"reads and writes"| node_study_program
node_superadmin_controller -->|"reads and writes"| node_user
node_superadmin_controller -->|"reads and writes"| node_contacts
node_roles_controller -->|"manages roles"| node_user
node_oath_period -->|"belongs to"| node_study_program
node_oath_period -->|"has many"| node_oath_candidate
node_oath_period -->|"has many"| node_event_photos
node_oath_period -->|"has many"| node_photographers
node_oath_candidate -->|"belongs to"| node_user
node_study_program -->|"has many"| node_contacts
node_user -->|"belongs to"| node_study_program

click node_web_routes "https://github.com/rinof21/sumpahprofesi/blob/main/routes/web.php"
click node_auth "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/AuthController.php"
click node_public "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/PublicController.php"
click node_candidate_controller "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/CandidateController.php"
click node_candidate_dashboard "https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/candidate/dashboard.blade.php"
click node_candidate_ticket "https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/candidate/e-ticket.blade.php"
click node_token_controller "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/TokenAccessController.php"
click node_token_verify "https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/public/token-verify.blade.php"
click node_token_portal "https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/public/token-portal.blade.php"
click node_admin_controller "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/AdminProdiController.php"
click node_candidate_export "https://github.com/rinof21/sumpahprofesi/blob/main/app/Exports/CandidatesExport.php"
click node_admin_views "https://github.com/rinof21/sumpahprofesi/tree/main/resources/views/admin"
click node_superadmin_controller "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/SuperadminController.php"
click node_roles_controller "https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/RolePermissionController.php"
click node_superadmin_views "https://github.com/rinof21/sumpahprofesi/tree/main/resources/views/superadmin"
click node_study_program "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/StudyProgram.php"
click node_oath_period "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/OathPeriod.php"
click node_oath_candidate "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/OathCandidate.php"
click node_user "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/User.php"
click node_contacts "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/ContactPerson.php"
click node_event_photos "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/EventPhoto.php"
click node_photographers "https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/Photographer.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_auth,node_public toneBlue
class node_candidate_controller,node_candidate_dashboard,node_candidate_ticket,node_token_controller,node_token_verify,node_token_portal toneAmber
class node_admin_controller,node_candidate_export,node_admin_views toneMint
class node_superadmin_controller,node_roles_controller,node_superadmin_views toneRose
class node_study_program,node_oath_period,node_oath_candidate,node_user,node_contacts,node_event_photos,node_photographers toneIndigo
```

## Components

### Web entry

- [Web routes](https://github.com/rinof21/sumpahprofesi/blob/main/routes/web.php): `routes/web.php`
- [Authentication](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Public information](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/PublicController.php): `app/Http/Controllers/PublicController.php`

### Candidate access

- [Candidate workflow](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/CandidateController.php): `app/Http/Controllers/CandidateController.php`
- [Candidate dashboard](https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/candidate/dashboard.blade.php): `resources/views/candidate/dashboard.blade.php`
- [e-ticket view](https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/candidate/e-ticket.blade.php): `resources/views/candidate/e-ticket.blade.php`
- [Token portal](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/TokenAccessController.php): `app/Http/Controllers/TokenAccessController.php`
- [Token verification view](https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/public/token-verify.blade.php): `resources/views/public/token-verify.blade.php`
- [Token portal view](https://github.com/rinof21/sumpahprofesi/blob/main/resources/views/public/token-portal.blade.php): `resources/views/public/token-portal.blade.php`

### Program administration

- [Program operations](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/AdminProdiController.php): `app/Http/Controllers/AdminProdiController.php`
- [Candidate export](https://github.com/rinof21/sumpahprofesi/blob/main/app/Exports/CandidatesExport.php): `app/Exports/CandidatesExport.php`
- [Program admin views](https://github.com/rinof21/sumpahprofesi/tree/main/resources/views/admin): `resources/views/admin`

### Platform administration

- [Platform administration](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/SuperadminController.php): `app/Http/Controllers/SuperadminController.php`
- [Role management](https://github.com/rinof21/sumpahprofesi/blob/main/app/Http/Controllers/RolePermissionController.php): `app/Http/Controllers/RolePermissionController.php`
- [Platform admin views](https://github.com/rinof21/sumpahprofesi/tree/main/resources/views/superadmin): `resources/views/superadmin`

### Domain records

- [Study programs](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/StudyProgram.php): `app/Models/StudyProgram.php`
- [Oath periods](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/OathPeriod.php): `app/Models/OathPeriod.php`
- [Oath candidates](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/OathCandidate.php): `app/Models/OathCandidate.php`
- [Users and roles](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/User.php): `app/Models/User.php`
- [Contact people](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/ContactPerson.php): `app/Models/ContactPerson.php`
- [Event photos](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/EventPhoto.php): `app/Models/EventPhoto.php`
- [Photographers](https://github.com/rinof21/sumpahprofesi/blob/main/app/Models/Photographer.php): `app/Models/Photographer.php`

## Connections

- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Public information: routes to (evidence: `routes/web.php`)
- Web routes → Candidate workflow: routes to (evidence: `routes/web.php`)
- Web routes → Token portal: routes to (evidence: `routes/web.php`)
- Web routes → Program operations: routes to (evidence: `routes/web.php`)
- Web routes → Platform administration: routes to (evidence: `routes/web.php`)
- Web routes → Role management: routes to (evidence: `routes/web.php`)
- Candidate workflow → Candidate dashboard: renders (evidence: `app/Http/Controllers/CandidateController.php`)
- Candidate workflow → e-ticket view: renders (evidence: `app/Http/Controllers/CandidateController.php`)
- Candidate workflow → Oath candidates: reads and writes (evidence: `app/Http/Controllers/CandidateController.php`)
- Candidate workflow → Oath periods: reads (evidence: `app/Http/Controllers/CandidateController.php`)
- Candidate workflow → Contact people: reads (evidence: `app/Http/Controllers/CandidateController.php`)
- Token portal → Token verification view: renders (evidence: `app/Http/Controllers/TokenAccessController.php`)
- Token portal → Token portal view: renders (evidence: `app/Http/Controllers/TokenAccessController.php`)
- Token portal → Oath periods: reads (evidence: `app/Http/Controllers/TokenAccessController.php`)
- Token portal → Oath candidates: reads and writes (evidence: `app/Http/Controllers/TokenAccessController.php`)
- Token portal → Contact people: reads (evidence: `app/Http/Controllers/TokenAccessController.php`)
- Program operations → Program admin views: renders (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Candidate export: downloads (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Oath periods: reads and writes (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Oath candidates: reads (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Photographers: reads and writes (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Contact people: reads and writes (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Program operations → Event photos: reads (evidence: `app/Http/Controllers/AdminProdiController.php`)
- Platform administration → Platform admin views: renders (evidence: `app/Http/Controllers/SuperadminController.php`)
- Platform administration → Study programs: reads and writes (evidence: `app/Http/Controllers/SuperadminController.php`)
- Platform administration → Users and roles: reads and writes (evidence: `app/Http/Controllers/SuperadminController.php`)
- Platform administration → Contact people: reads and writes (evidence: `app/Http/Controllers/SuperadminController.php`)
- Role management → Users and roles: manages roles (evidence: `app/Http/Controllers/RolePermissionController.php`)
- Oath periods → Study programs: belongs to (evidence: `app/Models/OathPeriod.php`)
- Oath periods → Oath candidates: has many (evidence: `app/Models/OathPeriod.php`)
- Oath periods → Event photos: has many (evidence: `app/Models/OathPeriod.php`)
- Oath periods → Photographers: has many (evidence: `app/Models/OathPeriod.php`)
- Oath candidates → Users and roles: belongs to (evidence: `app/Models/OathCandidate.php`)
- Study programs → Contact people: has many (evidence: `app/Models/StudyProgram.php`)
- Users and roles → Study programs: belongs to (evidence: `app/Models/User.php`)
