# imumd/mashroui architecture

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

- Interactive diagram: https://gitdiagram.com/imumd/mashroui
- Repository: https://github.com/imumd/mashroui

## Overview

Mashroui is a Laravel API for university graduation-project management. Students and staff use authenticated API workflows to form teams, submit proposals for review, then coordinate project tasks, meetings, discussions, and final reports. The README also documents academic-term scoping, evaluations, audit logging, notifications, and an Ollama-backed assistant. Edges reflect README-documented workflows and sampled controller calls; several feature branches are represented by their listed modules because their source was not sampled.

Main entry points: [`routes/api.php`](https://github.com/imumd/mashroui/blob/main/routes/api.php) (API routes), [`app/Http/Controllers/Api/ProjectController.php`](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/ProjectController.php) (Projects), [`app/Services/TeamService.php`](https://github.com/imumd/mashroui/blob/main/app/Services/TeamService.php) (Teams), [`app/Http/Controllers/Api/UserController.php`](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/UserController.php) (Users and roles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and identity"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_users["Users and roles<br/>[UserController.php]"]
  node_rbac["Access control"]
end

subgraph group_project["Project lifecycle"]
  node_teams["Teams<br/>[TeamService.php]"]
  node_proposals["Proposal review"]
  node_projects["Projects"]
  node_reports["Final reports"]
  node_evaluations["Evaluations"]
end

subgraph group_collab["Team collaboration"]
  node_tasks["Tasks and progress<br/>[TaskController.php]"]
  node_meetings["Meetings<br/>[MeetingService.php]"]
  node_discussions["Discussions"]
end

subgraph group_operations["Operations and communications"]
  node_audit[("Audit log<br/>[AuditLog.php]")]
  node_notifications["Notifications"]
  node_messaging["Email and WhatsApp"]
  node_assistant["Assistant"]
end

subgraph group_platform["Platform services"]
  node_api["API routes<br/>[api.php]"]
  node_terms["Academic terms<br/>[AcademicTerm.php]"]
end

node_student_staff(("Students and staff"))
node_ollama["Ollama model"]
node_mysql[("MySQL")]

node_student_staff -->|"use"| node_api
node_api -->|"routes to"| node_auth
node_api -->|"routes to"| node_users
node_api -->|"routes to"| node_teams
node_api -->|"routes to"| node_proposals
node_api -->|"routes to"| node_projects
node_api -->|"routes to"| node_tasks
node_api -->|"routes to"| node_meetings
node_api -->|"routes to"| node_discussions
node_api -->|"routes to"| node_reports
node_api -->|"routes to"| node_evaluations
node_api -->|"routes to"| node_assistant
node_api -->|"routes to"| node_notifications
node_auth -->|"authenticates"| node_users
node_users -->|"checked by"| node_rbac
node_teams -->|"scoped by"| node_terms
node_teams -->|"submit proposal"| node_proposals
node_proposals -->|"approval advances"| node_projects
node_projects -->|"track work"| node_tasks
node_projects -->|"coordinate"| node_meetings
node_projects -->|"discuss"| node_discussions
node_projects -->|"submit final"| node_reports
node_teams -->|"receive scores"| node_evaluations
node_users -->|"actions recorded"| node_audit
node_proposals -->|"reviews recorded"| node_audit
node_notifications -->|"deliver via"| node_messaging
node_messaging -->|"notify"| node_student_staff
node_assistant -->|"proxies chat"| node_ollama
node_users -->|"persist accounts"| node_mysql
node_teams -->|"persist records"| node_mysql

click node_api "https://github.com/imumd/mashroui/blob/main/routes/api.php"
click node_auth "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/AuthController.php"
click node_users "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/UserController.php"
click node_rbac "https://github.com/imumd/mashroui/tree/main/app/Support/Rbac"
click node_terms "https://github.com/imumd/mashroui/blob/main/app/Models/AcademicTerm.php"
click node_teams "https://github.com/imumd/mashroui/blob/main/app/Services/TeamService.php"
click node_proposals "https://github.com/imumd/mashroui/blob/main/app/Services/ProposalService.php"
click node_projects "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/ProjectController.php"
click node_tasks "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/TaskController.php"
click node_meetings "https://github.com/imumd/mashroui/blob/main/app/Services/MeetingService.php"
click node_discussions "https://github.com/imumd/mashroui/blob/main/app/Services/DiscussionService.php"
click node_reports "https://github.com/imumd/mashroui/blob/main/app/Services/FinalReportService.php"
click node_evaluations "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/EvaluationController.php"
click node_audit "https://github.com/imumd/mashroui/blob/main/app/Models/AuditLog.php"
click node_notifications "https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/NotificationController.php"
click node_messaging "https://github.com/imumd/mashroui/blob/main/app/Services/WhatsappService.php"
click node_assistant "https://github.com/imumd/mashroui/blob/main/app/Services/AssistantService.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_users,node_rbac toneBlue
class node_teams,node_proposals,node_projects,node_reports,node_evaluations,node_mysql toneAmber
class node_tasks,node_meetings,node_discussions toneMint
class node_audit,node_notifications,node_messaging,node_assistant toneRose
class node_api,node_terms,node_student_staff,node_ollama toneIndigo
```

## Components

### Access and identity

- [Authentication](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/AuthController.php): `app/Http/Controllers/Api/AuthController.php`
- [Users and roles](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/UserController.php): `app/Http/Controllers/Api/UserController.php`
- [Access control](https://github.com/imumd/mashroui/tree/main/app/Support/Rbac): `app/Support/Rbac`

### Project lifecycle

- [Teams](https://github.com/imumd/mashroui/blob/main/app/Services/TeamService.php): `app/Services/TeamService.php`
- [Proposal review](https://github.com/imumd/mashroui/blob/main/app/Services/ProposalService.php): `app/Services/ProposalService.php`
- [Projects](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/ProjectController.php): `app/Http/Controllers/Api/ProjectController.php`
- [Final reports](https://github.com/imumd/mashroui/blob/main/app/Services/FinalReportService.php): `app/Services/FinalReportService.php`
- [Evaluations](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/EvaluationController.php): `app/Http/Controllers/Api/EvaluationController.php`

### Team collaboration

- [Tasks and progress](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/TaskController.php): `app/Http/Controllers/Api/TaskController.php`
- [Meetings](https://github.com/imumd/mashroui/blob/main/app/Services/MeetingService.php): `app/Services/MeetingService.php`
- [Discussions](https://github.com/imumd/mashroui/blob/main/app/Services/DiscussionService.php): `app/Services/DiscussionService.php`

### Operations and communications

- [Audit log](https://github.com/imumd/mashroui/blob/main/app/Models/AuditLog.php): `app/Models/AuditLog.php`
- [Notifications](https://github.com/imumd/mashroui/blob/main/app/Http/Controllers/Api/NotificationController.php): `app/Http/Controllers/Api/NotificationController.php`
- [Email and WhatsApp](https://github.com/imumd/mashroui/blob/main/app/Services/WhatsappService.php): `app/Services/WhatsappService.php`
- [Assistant](https://github.com/imumd/mashroui/blob/main/app/Services/AssistantService.php): `app/Services/AssistantService.php`

### Platform services

- [API routes](https://github.com/imumd/mashroui/blob/main/routes/api.php): `routes/api.php`
- [Academic terms](https://github.com/imumd/mashroui/blob/main/app/Models/AcademicTerm.php): `app/Models/AcademicTerm.php`

### Other components

- **Students and staff**
- **Ollama model**
- **MySQL**

## Connections

- Students and staff → API routes: use
- API routes → Authentication: routes to (evidence: `routes/api.php`)
- API routes → Users and roles: routes to (evidence: `routes/api.php`)
- API routes → Teams: routes to (evidence: `routes/api.php`)
- API routes → Proposal review: routes to (evidence: `routes/api.php`)
- API routes → Projects: routes to (evidence: `routes/api.php`)
- API routes → Tasks and progress: routes to (evidence: `routes/api.php`)
- API routes → Meetings: routes to (evidence: `routes/api.php`)
- API routes → Discussions: routes to (evidence: `routes/api.php`)
- API routes → Final reports: routes to (evidence: `routes/api.php`)
- API routes → Evaluations: routes to (evidence: `routes/api.php`)
- API routes → Assistant: routes to (evidence: `routes/api.php`)
- API routes → Notifications: routes to (evidence: `routes/api.php`)
- Authentication → Users and roles: authenticates
- Users and roles → Access control: checked by
- Teams → Academic terms: scoped by
- Teams → Proposal review: submit proposal
- Proposal review → Projects: approval advances
- Projects → Tasks and progress: track work
- Projects → Meetings: coordinate
- Projects → Discussions: discuss
- Projects → Final reports: submit final
- Teams → Evaluations: receive scores
- Users and roles → Audit log: actions recorded (evidence: `app/Http/Controllers/Api/UserController.php`)
- Proposal review → Audit log: reviews recorded (evidence: `app/Services/ProposalService.php`)
- Notifications → Email and WhatsApp: deliver via
- Email and WhatsApp → Students and staff: notify
- Assistant → Ollama model: proxies chat
- Users and roles → MySQL: persist accounts
- Teams → MySQL: persist records
