# byteroute-eu/intranet architecture

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

- Interactive diagram: https://gitdiagram.com/byteroute-eu/intranet
- Repository: https://github.com/byteroute-eu/intranet

## Overview

Intranet is a Laravel platform for municipal staff. Users authenticate through LDAP/Active Directory or local accounts, then use role-controlled modules for news and tutorials, event planning, procurement, overtime, and audio transcription. The graph separates those domain workflows from identity/administration and transcription processing. README capabilities are retained where controller excerpts are unavailable; those links cite the README, while internal links are limited to relationships shown in excerpts or the SOURCE INDEX.

Main entry points: [`app/Http/Controllers/EventPlan/EventPlanController.php`](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/EventPlan/EventPlanController.php) (Event planning), [`app/Http/Controllers/Auth/AuthenticatedSessionController.php`](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php) (Sign-in), [`app/Http/Controllers/Overtime/DashboardController.php`](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Overtime/DashboardController.php) (Overtime dashboard and admin), [`app/Http/Controllers/Admin`](https://github.com/byteroute-eu/intranet/tree/main/app/Http/Controllers/Admin) (Administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and admin"]
  node_auth["Sign-in"]
  node_ldap["Directory integration<br/>[LdapService.php]"]
  node_user[("User and roles<br/>[User.php]")]
  node_admin["Administration"]
  node_settings[("System settings")]
end

subgraph group_portal["Staff portal"]
  node_news["News portal"]
  node_newsdata[("News content<br/>[NewsArticle.php]")]
  node_tutorials["Tutorials"]
end

subgraph group_planning["Planning workflows"]
  node_event["Event planning"]
  node_eventdata[("Event invitations and plans")]
  node_eventmail["Event notifications"]
  node_procurement["Procurement invitations"]
  node_procdata[("Procurement plans")]
end

subgraph group_overtime["Overtime management"]
  node_overtime["Overtime dashboard and admin"]
  node_overtimedata[("Employee overtime records<br/>[Employee.php]")]
  node_balance["Balance calculation"]
end

subgraph group_transcription["Transcription"]
  node_transcription["Transcription workflow"]
  node_transdata[("Transcription records<br/>[Transcription.php]")]
  node_workerjobs["Worker job polling"]
  node_workerclient["Whisper worker client"]
end

node_staff(("Staff user"))
node_worker{{"WhisperX worker"}}

node_staff -->|"signs in"| node_auth
node_auth -->|"authenticates with"| node_ldap
node_auth -->|"loads account"| node_user
node_staff -->|"reads and publishes"| node_news
node_news -->|"manages content"| node_newsdata
node_staff -->|"uses tutorials"| node_tutorials
node_staff -->|"submits event plans"| node_event
node_event -->|"creates and updates"| node_eventdata
node_event -->|"sends invitations"| node_eventmail
node_event -->|"reads configuration"| node_settings
node_staff -->|"submits procurement plans"| node_procurement
node_procurement -->|"creates plans"| node_procdata
node_staff -->|"reviews balances"| node_overtime
node_overtime -->|"loads employee records"| node_overtimedata
node_overtime -->|"calculates balance"| node_balance
node_staff -->|"uploads audio"| node_transcription
node_transcription -.->|"manages transcription"| node_transdata
node_workerjobs -->|"checks job status"| node_workerclient
node_workerjobs -->|"updates status"| node_transdata
node_workerclient -->|"sends worker requests"| node_worker
node_admin -.->|"manages accounts"| node_user
node_admin -.->|"manages settings"| node_settings

click node_auth "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_ldap "https://github.com/byteroute-eu/intranet/blob/main/app/Services/LdapService.php"
click node_user "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Auth/Models/User.php"
click node_admin "https://github.com/byteroute-eu/intranet/tree/main/app/Http/Controllers/Admin"
click node_settings "https://github.com/byteroute-eu/intranet/blob/main/app/Services/SettingsService.php"
click node_news "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Portal/NewsArticleController.php"
click node_newsdata "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Portal/Models/NewsArticle.php"
click node_tutorials "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Portal/TutorialController.php"
click node_event "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/EventPlan/EventPlanController.php"
click node_eventdata "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/EventPlan/Models/EventInvitation.php"
click node_eventmail "https://github.com/byteroute-eu/intranet/blob/main/app/Mail/EventInvitationMail.php"
click node_procurement "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Procurement/ProcurementController.php"
click node_procdata "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Procurement/Models/ProcurementPlan.php"
click node_overtime "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Overtime/DashboardController.php"
click node_overtimedata "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Overtime/Models/Employee.php"
click node_balance "https://github.com/byteroute-eu/intranet/blob/main/app/Services/OvertimeBalanceService.php"
click node_transcription "https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Transcription/TranscriptionController.php"
click node_transdata "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Models/Transcription.php"
click node_workerjobs "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Jobs/PollWorkerStatusJob.php"
click node_workerclient "https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Services/WhisperWorkerClient.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_auth,node_ldap,node_user,node_admin,node_settings,node_staff toneBlue
class node_news,node_newsdata,node_tutorials toneAmber
class node_event,node_eventdata,node_eventmail,node_procurement,node_procdata toneMint
class node_overtime,node_overtimedata,node_balance,node_worker toneRose
class node_transcription,node_transdata,node_workerjobs,node_workerclient toneIndigo
```

## Components

### Identity and admin

- [Sign-in](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Directory integration](https://github.com/byteroute-eu/intranet/blob/main/app/Services/LdapService.php): `app/Services/LdapService.php`
- [User and roles](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Auth/Models/User.php): `app/Domain/Auth/Models/User.php`
- [Administration](https://github.com/byteroute-eu/intranet/tree/main/app/Http/Controllers/Admin): `app/Http/Controllers/Admin`
- [System settings](https://github.com/byteroute-eu/intranet/blob/main/app/Services/SettingsService.php): `app/Services/SettingsService.php`

### Staff portal

- [News portal](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Portal/NewsArticleController.php): `app/Http/Controllers/Portal/NewsArticleController.php`
- [News content](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Portal/Models/NewsArticle.php): `app/Domain/Portal/Models/NewsArticle.php`
- [Tutorials](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Portal/TutorialController.php): `app/Http/Controllers/Portal/TutorialController.php`

### Planning workflows

- [Event planning](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/EventPlan/EventPlanController.php): `app/Http/Controllers/EventPlan/EventPlanController.php`
- [Event invitations and plans](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/EventPlan/Models/EventInvitation.php): `app/Domain/EventPlan/Models/EventInvitation.php`
- [Event notifications](https://github.com/byteroute-eu/intranet/blob/main/app/Mail/EventInvitationMail.php): `app/Mail/EventInvitationMail.php`
- [Procurement invitations](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Procurement/ProcurementController.php): `app/Http/Controllers/Procurement/ProcurementController.php`
- [Procurement plans](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Procurement/Models/ProcurementPlan.php): `app/Domain/Procurement/Models/ProcurementPlan.php`

### Overtime management

- [Overtime dashboard and admin](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Overtime/DashboardController.php): `app/Http/Controllers/Overtime/DashboardController.php`
- [Employee overtime records](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Overtime/Models/Employee.php): `app/Domain/Overtime/Models/Employee.php`
- [Balance calculation](https://github.com/byteroute-eu/intranet/blob/main/app/Services/OvertimeBalanceService.php): `app/Services/OvertimeBalanceService.php`

### Transcription

- [Transcription workflow](https://github.com/byteroute-eu/intranet/blob/main/app/Http/Controllers/Transcription/TranscriptionController.php): `app/Http/Controllers/Transcription/TranscriptionController.php`
- [Transcription records](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Models/Transcription.php): `app/Domain/Transcription/Models/Transcription.php`
- [Worker job polling](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Jobs/PollWorkerStatusJob.php): `app/Domain/Transcription/Jobs/PollWorkerStatusJob.php`
- [Whisper worker client](https://github.com/byteroute-eu/intranet/blob/main/app/Domain/Transcription/Services/WhisperWorkerClient.php): `app/Domain/Transcription/Services/WhisperWorkerClient.php`

### Other components

- **Staff user**
- **WhisperX worker**

## Connections

- Staff user → Sign-in: signs in
- Sign-in → Directory integration: authenticates with (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Sign-in → User and roles: loads account (evidence: `app/Http/Controllers/Auth/AuthenticatedSessionController.php`)
- Staff user → News portal: reads and publishes
- News portal → News content: manages content (evidence: `app/Http/Controllers/Portal/NewsArticleController.php`)
- Staff user → Tutorials: uses tutorials
- Staff user → Event planning: submits event plans
- Event planning → Event invitations and plans: creates and updates (evidence: `app/Http/Controllers/EventPlan/EventPlanController.php`)
- Event planning → Event notifications: sends invitations (evidence: `app/Http/Controllers/EventPlan/EventPlanController.php`)
- Event planning → System settings: reads configuration (evidence: `app/Http/Controllers/EventPlan/EventPlanController.php`)
- Staff user → Procurement invitations: submits procurement plans
- Procurement invitations → Procurement plans: creates plans (evidence: `app/Http/Controllers/Procurement/ProcurementController.php`)
- Staff user → Overtime dashboard and admin: reviews balances
- Overtime dashboard and admin → Employee overtime records: loads employee records (evidence: `app/Http/Controllers/Overtime/DashboardController.php`)
- Overtime dashboard and admin → Balance calculation: calculates balance (evidence: `app/Http/Controllers/Overtime/DashboardController.php`)
- Staff user → Transcription workflow: uploads audio
- Transcription workflow → Transcription records: manages transcription
- Worker job polling → Whisper worker client: checks job status (evidence: `app/Domain/Transcription/Jobs/PollWorkerStatusJob.php`)
- Worker job polling → Transcription records: updates status (evidence: `app/Domain/Transcription/Jobs/PollWorkerStatusJob.php`)
- Whisper worker client → WhisperX worker: sends worker requests (evidence: `app/Domain/Transcription/Services/WhisperWorkerClient.php`)
- Administration → User and roles: manages accounts
- Administration → System settings: manages settings
