# ahnafrm-src/sibersih architecture

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

- Interactive diagram: https://gitdiagram.com/ahnafrm-src/sibersih
- Repository: https://github.com/ahnafrm-src/sibersih

## Overview

SI-BERSIH is documented as a school-cleanliness reporting and accountability web app. The README describes public reports being assigned to a responsible class using room-and-time schedules, followed by admin review and weekly scoring. The checked-in tree and sampled source are much smaller than that description: several documented feature modules are absent, and the sampled auth controller is empty. Feature-stage links below therefore reflect README-documented behavior, not verified implementation; runtime boot links are limited to sampled source.

Main entry points: [`database/migrations`](https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations) (Cleanliness reports), [`app/Http/Controllers`](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers) (Class assignment), [`resources/views`](https://github.com/ahnafrm-src/sibersih/tree/main/resources/views) (Monitoring dashboard), [`public/index.php`](https://github.com/ahnafrm-src/sibersih/blob/main/public/index.php) (HTTP entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Reporting workflow"]
  node_public_report["Submit report"]
  node_assignment["Class assignment"]
end

subgraph group_admin["Administration"]
  node_dashboard["Monitoring dashboard"]
  node_report_review["Review reports"]
  node_schedule_management["Manage schedules"]
  node_weekly_scores["Weekly score recap"]
end

subgraph group_data["Domain data"]
  node_schedule[("Lesson schedules")]
  node_report_records[("Cleanliness reports")]
  node_score_records[("Weekly score snapshots")]
  node_user_model["User model<br/>[User.php]"]
  node_user_factory["User factory<br/>[UserFactory.php]"]
end

subgraph group_runtime["Laravel runtime"]
  node_web_entry["HTTP entry point<br/>[index.php]"]
  node_laravel_app["Application bootstrap<br/>[app.php]"]
  node_auth_controller["Auth controller<br/>[AuthControler.php]"]
  node_service_provider["App service provider"]
  node_frontend_bootstrap["JS bootstrap<br/>[bootstrap.js]"]
end

node_reporter(("Public reporter"))
node_admin(("Admin or teacher"))

node_reporter -->|"submits report"| node_public_report
node_public_report -->|"assigns class"| node_assignment
node_assignment -->|"matches room and time"| node_schedule
node_assignment -->|"records assigned class"| node_report_records
node_admin -->|"reviews activity"| node_dashboard
node_dashboard -->|"summarizes reports"| node_report_records
node_admin -->|"updates status or class"| node_report_review
node_report_review -->|"updates reports"| node_report_records
node_admin -->|"manages schedules"| node_schedule_management
node_schedule_management -->|"changes schedule data"| node_schedule
node_weekly_scores -->|"reads verified reports"| node_report_records
node_weekly_scores -->|"updates weekly scores"| node_score_records
node_web_entry -->|"boots application"| node_laravel_app
node_auth_controller -->|"imports"| node_user_model
node_user_factory -->|"creates users"| node_user_model
node_service_provider -.->|"registers provider"| node_laravel_app
node_frontend_bootstrap -.->|"supports browser requests"| node_web_entry

click node_public_report "https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers"
click node_assignment "https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers"
click node_schedule "https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations"
click node_report_records "https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations"
click node_dashboard "https://github.com/ahnafrm-src/sibersih/tree/main/resources/views"
click node_report_review "https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers"
click node_schedule_management "https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers"
click node_weekly_scores "https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers"
click node_score_records "https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations"
click node_web_entry "https://github.com/ahnafrm-src/sibersih/blob/main/public/index.php"
click node_laravel_app "https://github.com/ahnafrm-src/sibersih/blob/main/bootstrap/app.php"
click node_auth_controller "https://github.com/ahnafrm-src/sibersih/blob/main/app/Http/Controllers/Auth/AuthControler.php"
click node_user_model "https://github.com/ahnafrm-src/sibersih/blob/main/app/Models/User.php"
click node_service_provider "https://github.com/ahnafrm-src/sibersih/blob/main/app/Providers/AppServiceProvider.php"
click node_user_factory "https://github.com/ahnafrm-src/sibersih/blob/main/database/factories/UserFactory.php"
click node_frontend_bootstrap "https://github.com/ahnafrm-src/sibersih/blob/main/resources/js/bootstrap.js"

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_public_report,node_assignment toneBlue
class node_dashboard,node_report_review,node_schedule_management,node_weekly_scores toneAmber
class node_schedule,node_report_records,node_score_records,node_user_model,node_user_factory toneMint
class node_web_entry,node_laravel_app,node_auth_controller,node_service_provider,node_frontend_bootstrap toneRose
class node_reporter,node_admin toneIndigo
```

## Components

### Reporting workflow

- [Submit report](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Class assignment](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers): `app/Http/Controllers`

### Administration

- [Monitoring dashboard](https://github.com/ahnafrm-src/sibersih/tree/main/resources/views): `resources/views`
- [Review reports](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Manage schedules](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Weekly score recap](https://github.com/ahnafrm-src/sibersih/tree/main/app/Http/Controllers): `app/Http/Controllers`

### Domain data

- [Lesson schedules](https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations): `database/migrations`
- [Cleanliness reports](https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations): `database/migrations`
- [Weekly score snapshots](https://github.com/ahnafrm-src/sibersih/tree/main/database/migrations): `database/migrations`
- [User model](https://github.com/ahnafrm-src/sibersih/blob/main/app/Models/User.php): `app/Models/User.php`
- [User factory](https://github.com/ahnafrm-src/sibersih/blob/main/database/factories/UserFactory.php): `database/factories/UserFactory.php`

### Laravel runtime

- [HTTP entry point](https://github.com/ahnafrm-src/sibersih/blob/main/public/index.php): `public/index.php`
- [Application bootstrap](https://github.com/ahnafrm-src/sibersih/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Auth controller](https://github.com/ahnafrm-src/sibersih/blob/main/app/Http/Controllers/Auth/AuthControler.php): `app/Http/Controllers/Auth/AuthControler.php`
- [App service provider](https://github.com/ahnafrm-src/sibersih/blob/main/app/Providers/AppServiceProvider.php): `app/Providers/AppServiceProvider.php`
- [JS bootstrap](https://github.com/ahnafrm-src/sibersih/blob/main/resources/js/bootstrap.js): `resources/js/bootstrap.js`

### Other components

- **Public reporter**
- **Admin or teacher**

## Connections

- Public reporter → Submit report: submits report (evidence: `README.md`)
- Submit report → Class assignment: assigns class (evidence: `README.md`)
- Class assignment → Lesson schedules: matches room and time (evidence: `README.md`)
- Class assignment → Cleanliness reports: records assigned class (evidence: `README.md`)
- Admin or teacher → Monitoring dashboard: reviews activity (evidence: `README.md`)
- Monitoring dashboard → Cleanliness reports: summarizes reports (evidence: `README.md`)
- Admin or teacher → Review reports: updates status or class (evidence: `README.md`)
- Review reports → Cleanliness reports: updates reports (evidence: `README.md`)
- Admin or teacher → Manage schedules: manages schedules (evidence: `README.md`)
- Manage schedules → Lesson schedules: changes schedule data (evidence: `README.md`)
- Weekly score recap → Cleanliness reports: reads verified reports (evidence: `README.md`)
- Weekly score recap → Weekly score snapshots: updates weekly scores (evidence: `README.md`)
- HTTP entry point → Application bootstrap: boots application (evidence: `public/index.php`)
- Auth controller → User model: imports (evidence: `app/Http/Controllers/Auth/AuthControler.php`)
- User factory → User model: creates users (evidence: `database/factories/UserFactory.php`)
- App service provider → Application bootstrap: registers provider
- JS bootstrap → HTTP entry point: supports browser requests
