# athmanbal/fp-grh architecture

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

- Interactive diagram: https://gitdiagram.com/athmanbal/fp-grh
- Repository: https://github.com/athmanbal/fp-grh

## Overview

FP-GRH is an internal Laravel HR application for ODEJ. Its principal workflow is managing personnel records and leave requests, then reviewing leave status and absences through dashboards, history and a calendar. The README documents the main screens, personnel domains and recalculated leave balance; the provided source excerpts contain no application controllers, routes or models, so internal wiring is not verified and is shown only as dashed links where useful.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_personnel["Personnel management"]
  node_personnel_controller["Personnel handling"]
  node_personnel_views["Personnel screens"]
end

subgraph group_leave["Leave management"]
  node_leave_controller["Leave handling"]
  node_leave_dashboard["Leave dashboard"]
  node_leave_form["New leave form"]
  node_leave_history["Leave history"]
  node_leave_calendar["Absence calendar"]
end

subgraph group_data["Domain data"]
  node_official["Staff records"]
  node_corps["Personnel corps"]
  node_fonction["Job functions"]
  node_leave_record["Leave records"]
  node_database[("MySQL database")]
end

node_staff_user(("HR user"))

node_staff_user -.->|"manages staff"| node_personnel_controller
node_personnel_controller -.->|"serves screens"| node_personnel_views
node_personnel_controller -.->|"handles records"| node_official
node_staff_user -.->|"manages leave"| node_leave_controller
node_leave_controller -.->|"serves dashboard"| node_leave_dashboard
node_leave_controller -.->|"serves form"| node_leave_form
node_leave_controller -.->|"serves history"| node_leave_history
node_leave_controller -.->|"serves calendar"| node_leave_calendar
node_leave_controller -.->|"reviews requests"| node_leave_record
node_leave_record -.->|"stores requests"| node_database
node_leave_controller -.->|"calculates balance"| node_leave_record
node_personnel_controller -.->|"persists records"| node_database

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_personnel_controller,node_personnel_views,node_staff_user toneBlue
class node_leave_controller,node_leave_dashboard,node_leave_form,node_leave_history,node_leave_calendar toneAmber
class node_official,node_corps,node_fonction,node_leave_record,node_database toneMint
```

## Components

### Personnel management

- **Personnel handling**
- **Personnel screens**

### Leave management

- **Leave handling**
- **Leave dashboard**
- **New leave form**
- **Leave history**
- **Absence calendar**

### Domain data

- **Staff records**
- **Personnel corps**
- **Job functions**
- **Leave records**
- **MySQL database**

### Other components

- **HR user**

## Connections

- HR user → Personnel handling: manages staff (evidence: `README.md`)
- Personnel handling → Personnel screens: serves screens
- Personnel handling → Staff records: handles records
- HR user → Leave handling: manages leave (evidence: `README.md`)
- Leave handling → Leave dashboard: serves dashboard
- Leave handling → New leave form: serves form
- Leave handling → Leave history: serves history
- Leave handling → Absence calendar: serves calendar
- Leave handling → Leave records: reviews requests
- Leave records → MySQL database: stores requests (evidence: `README.md`)
- Leave handling → Leave records: calculates balance (evidence: `README.md`)
- Personnel handling → MySQL database: persists records (evidence: `README.md`)
