# istiakdeveloper/hrm-mou2025 architecture

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

- Interactive diagram: https://gitdiagram.com/istiakdeveloper/hrm-mou2025
- Repository: https://github.com/istiakdeveloper/hrm-mou2025

## Overview

This is an HR and workforce management application: authenticated staff and administrators manage employee records and organizational structure, then handle attendance, leave, movements, and transfers, with dashboards and reports exposing operational data. Laravel controllers provide the server-side workflows and render Inertia pages for the React interface. The source index supports several controller-to-model relationships; excerpts show selected page rendering and model relationships. Other documented-by-tree capabilities are represented, but their internal connections are omitted where source was not sampled.

Main entry points: [`app/Models`](https://github.com/istiakdeveloper/hrm-mou2025/tree/main/app/Models) (HR domain records), [`app/Http/Controllers/DashboardController.php`](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/DashboardController.php) (Dashboard), [`app/Http/Controllers/Attendance/AttendanceController.php`](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Attendance/AttendanceController.php) (Attendance records), [`app/Http/Controllers/Leave/LeaveApplicationController.php`](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Leave/LeaveApplicationController.php) (Leave workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and shell"]
  node_laravel["Laravel entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_auth_routes["Auth routes<br/>[auth.php]"]
  node_auth_controller["Authentication"]
  node_auth_pages["Auth screens"]
  node_dashboard["Dashboard"]
  node_dashboard_page["Dashboard view<br/>[dashboard.tsx]"]
end

subgraph group_workforce["Workforce administration"]
  node_employee_admin["Employee records"]
  node_org_admin["Organization"]
  node_employee_docs["Employee documents"]
  node_roles_users["Users and roles<br/>[UserController.php]"]
end

subgraph group_operations["Workforce operations"]
  node_attendance["Attendance records"]
  node_attendance_devices["Attendance devices"]
  node_zk["ZKTeco integration"]
  node_leave["Leave workflow"]
  node_leave_balances["Leave balances"]
  node_movement["Movement workflow"]
  node_transfer["Transfer workflow"]
  node_reporting["Reports"]
  node_attendance_page["Attendance screens"]
  node_leave_page["Leave screens"]
end

subgraph group_data["Domain records"]
  node_records[("HR domain records")]
end

node_staff(("Staff member"))

node_staff -->|"submits requests"| node_laravel
node_laravel -->|"boots app"| node_bootstrap
node_bootstrap -->|"loads routes"| node_auth_routes
node_auth_routes -->|"routes to"| node_auth_controller
node_auth_controller -.->|"renders"| node_auth_pages
node_dashboard -->|"queries"| node_records
node_dashboard -->|"renders"| node_dashboard_page
node_employee_admin -->|"queries and updates"| node_records
node_org_admin -.->|"queries and updates"| node_records
node_employee_docs -.->|"manages documents"| node_records
node_roles_users -->|"manages access"| node_records
node_attendance -->|"queries and updates"| node_records
node_attendance -->|"renders"| node_attendance_page
node_attendance_devices -.->|"manages devices"| node_records
node_zk -->|"records device attendance"| node_records
node_leave -->|"queries and updates"| node_records
node_leave -->|"renders"| node_leave_page
node_leave_balances -.->|"manages balances"| node_records
node_movement -->|"queries and updates"| node_records
node_transfer -->|"queries and updates"| node_records
node_reporting -->|"queries reports"| node_records
node_records -->|"relates records"| node_records

click node_laravel "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/public/index.php"
click node_bootstrap "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/bootstrap/app.php"
click node_auth_routes "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/routes/auth.php"
click node_auth_controller "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php"
click node_auth_pages "https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/auth"
click node_dashboard "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/DashboardController.php"
click node_dashboard_page "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/resources/js/pages/dashboard.tsx"
click node_employee_admin "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Employee/EmployeeController.php"
click node_org_admin "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Branch/BranchController.php"
click node_employee_docs "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Employee/EmployeeDocumentController.php"
click node_roles_users "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Admin/UserController.php"
click node_attendance "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Attendance/AttendanceController.php"
click node_attendance_devices "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Attendance/AttendanceDeviceController.php"
click node_zk "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/ZKTeco/ZKDeviceController.php"
click node_leave "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Leave/LeaveApplicationController.php"
click node_leave_balances "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Leave/LeaveBalanceController.php"
click node_movement "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Movement/MovementController.php"
click node_transfer "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Transfer/TransferController.php"
click node_reporting "https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Report/ReportController.php"
click node_records "https://github.com/istiakdeveloper/hrm-mou2025/tree/main/app/Models"
click node_attendance_page "https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/attendance"
click node_leave_page "https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/leave"

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_laravel,node_bootstrap,node_auth_routes,node_auth_controller,node_auth_pages,node_dashboard,node_dashboard_page toneBlue
class node_employee_admin,node_org_admin,node_employee_docs,node_roles_users toneAmber
class node_attendance,node_attendance_devices,node_zk,node_leave,node_leave_balances,node_movement,node_transfer,node_reporting,node_attendance_page,node_leave_page toneMint
class node_records toneRose
class node_staff toneIndigo
```

## Components

### Access and shell

- [Laravel entry](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Auth routes](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/routes/auth.php): `routes/auth.php`
- [Authentication](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Auth/AuthenticatedSessionController.php): `app/Http/Controllers/Auth/AuthenticatedSessionController.php`
- [Auth screens](https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/auth): `resources/js/pages/auth`
- [Dashboard](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Dashboard view](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/resources/js/pages/dashboard.tsx): `resources/js/pages/dashboard.tsx`

### Workforce administration

- [Employee records](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Employee/EmployeeController.php): `app/Http/Controllers/Employee/EmployeeController.php`
- [Organization](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Branch/BranchController.php): `app/Http/Controllers/Branch/BranchController.php`
- [Employee documents](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Employee/EmployeeDocumentController.php): `app/Http/Controllers/Employee/EmployeeDocumentController.php`
- [Users and roles](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Admin/UserController.php): `app/Http/Controllers/Admin/UserController.php`

### Workforce operations

- [Attendance records](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Attendance/AttendanceController.php): `app/Http/Controllers/Attendance/AttendanceController.php`
- [Attendance devices](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Attendance/AttendanceDeviceController.php): `app/Http/Controllers/Attendance/AttendanceDeviceController.php`
- [ZKTeco integration](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/ZKTeco/ZKDeviceController.php): `app/Http/Controllers/ZKTeco/ZKDeviceController.php`
- [Leave workflow](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Leave/LeaveApplicationController.php): `app/Http/Controllers/Leave/LeaveApplicationController.php`
- [Leave balances](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Leave/LeaveBalanceController.php): `app/Http/Controllers/Leave/LeaveBalanceController.php`
- [Movement workflow](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Movement/MovementController.php): `app/Http/Controllers/Movement/MovementController.php`
- [Transfer workflow](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Transfer/TransferController.php): `app/Http/Controllers/Transfer/TransferController.php`
- [Reports](https://github.com/istiakdeveloper/hrm-mou2025/blob/main/app/Http/Controllers/Report/ReportController.php): `app/Http/Controllers/Report/ReportController.php`
- [Attendance screens](https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/attendance): `resources/js/pages/attendance`
- [Leave screens](https://github.com/istiakdeveloper/hrm-mou2025/tree/main/resources/js/pages/leave): `resources/js/pages/leave`

### Domain records

- [HR domain records](https://github.com/istiakdeveloper/hrm-mou2025/tree/main/app/Models): `app/Models`

### Other components

- **Staff member**

## Connections

- Staff member → Laravel entry: submits requests
- Laravel entry → App bootstrap: boots app (evidence: `public/index.php`)
- App bootstrap → Auth routes: loads routes (evidence: `bootstrap/app.php`)
- Auth routes → Authentication: routes to (evidence: `routes/auth.php`)
- Authentication → Auth screens: renders
- Dashboard → HR domain records: queries (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → Dashboard view: renders (evidence: `app/Http/Controllers/DashboardController.php`)
- Employee records → HR domain records: queries and updates (evidence: `app/Http/Controllers/Employee/EmployeeController.php`)
- Organization → HR domain records: queries and updates
- Employee documents → HR domain records: manages documents
- Users and roles → HR domain records: manages access
- Attendance records → HR domain records: queries and updates (evidence: `app/Http/Controllers/Attendance/AttendanceController.php`)
- Attendance records → Attendance screens: renders (evidence: `app/Http/Controllers/Attendance/AttendanceController.php`)
- Attendance devices → HR domain records: manages devices
- ZKTeco integration → HR domain records: records device attendance (evidence: `app/Http/Controllers/ZKTeco/ZKDeviceController.php`)
- Leave workflow → HR domain records: queries and updates (evidence: `app/Http/Controllers/Leave/LeaveApplicationController.php`)
- Leave workflow → Leave screens: renders (evidence: `app/Http/Controllers/Leave/LeaveApplicationController.php`)
- Leave balances → HR domain records: manages balances
- Movement workflow → HR domain records: queries and updates (evidence: `app/Http/Controllers/Movement/MovementController.php`)
- Transfer workflow → HR domain records: queries and updates (evidence: `app/Http/Controllers/Transfer/TransferController.php`)
- Reports → HR domain records: queries reports (evidence: `app/Http/Controllers/Report/ReportController.php`)
- HR domain records → HR domain records: relates records (evidence: `app/Models/Employee.php`)
