# theresiaherrich/nava architecture

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

## Overview

Nava is a Laravel school administration application. The visible workflow starts in the browser, enters through web routes, and dispatches to authentication, TP, or curriculum controllers that return server-rendered Blade pages. The sampled code also shows role-aware user creation and middleware registration. The README describes broader attendance, counseling, grading, verification, report, and family/student portal capabilities, but their implementations are not in the supplied tree; these are shown as documented, unverified subsystems rather than asserted call paths.

Main entry points: [`routes/web.php`](https://github.com/theresiaherrich/nava/blob/main/routes/web.php) (Web routes), [`bootstrap/app.php`](https://github.com/theresiaherrich/nava/blob/main/bootstrap/app.php) (Middleware aliases), [`app/Http/Controllers/Auth/AuthController.php`](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Auth/AuthController.php) (Authentication), [`app/Http/Controllers/Admin/UserController.php`](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Admin/UserController.php) (User administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_routes["Web routes<br/>[web.php]"]
end

subgraph group_identity["Identity and access"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_login_view["Login page<br/>[login.blade.php]"]
  node_user_admin["User administration<br/>[UserController.php]"]
  node_user_model["User account model<br/>[User.php]"]
  node_middleware_setup["Middleware aliases<br/>[app.php]"]
  node_role_middleware["Role access check<br/>[RoleMiddleware.php]"]
  node_subrole_middleware["Subrole access check"]
  node_active_middleware["Active account check<br/>[EnsureActive.php]"]
end

subgraph group_academic["Academic administration"]
  node_tp_controller["TP controller<br/>[TpController.php]"]
  node_tp_page["TP workspace<br/>[index.blade.php]"]
  node_curriculum["Curriculum pages"]
  node_report_views["Report views"]
end

subgraph group_school["School capabilities"]
  node_database[("MySQL database")]
  node_attendance["Attendance"]
  node_counseling["Discipline and counseling"]
  node_verification["Grade verification"]
  node_family_portal["Family and student portal"]
end

node_browser(("Browser"))

node_browser -->|"sends requests"| node_routes
node_routes -->|"routes login"| node_auth
node_auth -->|"renders"| node_login_view
node_routes -->|"routes TP"| node_tp_controller
node_tp_controller -->|"renders"| node_tp_page
node_routes -->|"routes curriculum"| node_curriculum
node_curriculum -->|"renders"| node_report_views
node_routes -->|"routes user creation"| node_user_admin
node_user_admin -->|"creates account"| node_user_model
node_middleware_setup -->|"registers alias"| node_role_middleware
node_middleware_setup -->|"registers alias"| node_subrole_middleware
node_middleware_setup -->|"registers alias"| node_active_middleware
node_routes -->|"applies active check"| node_active_middleware
node_user_model -.->|"uses Eloquent store"| node_database
node_routes -.->|"serves module"| node_attendance
node_routes -.->|"serves module"| node_counseling
node_routes -.->|"serves workflow"| node_verification
node_routes -.->|"serves portal"| node_family_portal

click node_routes "https://github.com/theresiaherrich/nava/blob/main/routes/web.php"
click node_auth "https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Auth/AuthController.php"
click node_login_view "https://github.com/theresiaherrich/nava/blob/main/resources/views/auth/login.blade.php"
click node_user_admin "https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Admin/UserController.php"
click node_user_model "https://github.com/theresiaherrich/nava/blob/main/app/Models/User.php"
click node_middleware_setup "https://github.com/theresiaherrich/nava/blob/main/bootstrap/app.php"
click node_role_middleware "https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/RoleMiddleware.php"
click node_subrole_middleware "https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/SubRoleMiddleware.php"
click node_active_middleware "https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/EnsureActive.php"
click node_tp_controller "https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Academic/TpController.php"
click node_tp_page "https://github.com/theresiaherrich/nava/blob/main/resources/views/academic/tp/index.blade.php"
click node_curriculum "https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Admin/KurikulumController.php"
click node_report_views "https://github.com/theresiaherrich/nava/tree/main/resources/views/admin/kurikulum"
click node_attendance "https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers"
click node_counseling "https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers"
click node_verification "https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers"
click node_family_portal "https://github.com/theresiaherrich/nava/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_browser toneBlue
class node_auth,node_login_view,node_user_admin,node_user_model,node_middleware_setup,node_role_middleware,node_subrole_middleware,node_active_middleware toneAmber
class node_tp_controller,node_tp_page,node_curriculum,node_report_views toneMint
class node_database,node_attendance,node_counseling,node_verification,node_family_portal toneRose
```

## Components

### Web entry

- [Web routes](https://github.com/theresiaherrich/nava/blob/main/routes/web.php): `routes/web.php`

### Identity and access

- [Authentication](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Auth/AuthController.php): `app/Http/Controllers/Auth/AuthController.php`
- [Login page](https://github.com/theresiaherrich/nava/blob/main/resources/views/auth/login.blade.php): `resources/views/auth/login.blade.php`
- [User administration](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Admin/UserController.php): `app/Http/Controllers/Admin/UserController.php`
- [User account model](https://github.com/theresiaherrich/nava/blob/main/app/Models/User.php): `app/Models/User.php`
- [Middleware aliases](https://github.com/theresiaherrich/nava/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Role access check](https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/RoleMiddleware.php): `app/Http/Middleware/RoleMiddleware.php`
- [Subrole access check](https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/SubRoleMiddleware.php): `app/Http/Middleware/SubRoleMiddleware.php`
- [Active account check](https://github.com/theresiaherrich/nava/blob/main/app/Http/Middleware/EnsureActive.php): `app/Http/Middleware/EnsureActive.php`

### Academic administration

- [TP controller](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Academic/TpController.php): `app/Http/Controllers/Academic/TpController.php`
- [TP workspace](https://github.com/theresiaherrich/nava/blob/main/resources/views/academic/tp/index.blade.php): `resources/views/academic/tp/index.blade.php`
- [Curriculum pages](https://github.com/theresiaherrich/nava/blob/main/app/Http/Controllers/Admin/KurikulumController.php): `app/Http/Controllers/Admin/KurikulumController.php`
- [Report views](https://github.com/theresiaherrich/nava/tree/main/resources/views/admin/kurikulum): `resources/views/admin/kurikulum`

### School capabilities

- **MySQL database**
- [Attendance](https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Discipline and counseling](https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Grade verification](https://github.com/theresiaherrich/nava/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Family and student portal](https://github.com/theresiaherrich/nava/tree/main/resources/views): `resources/views`

### Other components

- **Browser**

## Connections

- Browser → Web routes: sends requests
- Web routes → Authentication: routes login (evidence: `routes/web.php`)
- Authentication → Login page: renders (evidence: `app/Http/Controllers/Auth/AuthController.php`)
- Web routes → TP controller: routes TP (evidence: `routes/web.php`)
- TP controller → TP workspace: renders (evidence: `app/Http/Controllers/Academic/TpController.php`)
- Web routes → Curriculum pages: routes curriculum (evidence: `routes/web.php`)
- Curriculum pages → Report views: renders (evidence: `app/Http/Controllers/Admin/KurikulumController.php`)
- Web routes → User administration: routes user creation (evidence: `routes/web.php`)
- User administration → User account model: creates account (evidence: `app/Http/Controllers/Admin/UserController.php`)
- Middleware aliases → Role access check: registers alias (evidence: `bootstrap/app.php`)
- Middleware aliases → Subrole access check: registers alias (evidence: `bootstrap/app.php`)
- Middleware aliases → Active account check: registers alias (evidence: `bootstrap/app.php`)
- Web routes → Active account check: applies active check (evidence: `routes/web.php`)
- User account model → MySQL database: uses Eloquent store
- Web routes → Attendance: serves module (evidence: `routes/web.php`)
- Web routes → Discipline and counseling: serves module (evidence: `routes/web.php`)
- Web routes → Grade verification: serves workflow (evidence: `routes/web.php`)
- Web routes → Family and student portal: serves portal
