# devnawjesh/hr-payroll architecture

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

## Overview

Zeri HR is a Laravel HRM and payroll application. Employees and managers use the portal for employee lifecycle tasks, attendance, leave requests and approvals, and work management; HR and payroll staff administer records, prepare and finalize payroll, and review reports. The graph groups the product’s main operational domains and its access-control layer. README statements support the product workflows and capabilities; source-index references support only the sampled controller-to-service/repository/model links, so unsampled internals are represented at subsystem level.

Main entry points: [`resources/views/layouts/app.blade.php`](https://github.com/devnawjesh/hr-payroll/blob/main/resources/views/layouts/app.blade.php) (HR Portal), [`app/Modules/Employees/Http/Controllers/EmployeeResignationController.php`](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Employees/Http/Controllers/EmployeeResignationController.php) (Employee Lifecycle), [`app/Modules/Payroll/Http/Controllers/PayrollController.php`](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Http/Controllers/PayrollController.php) (Salary Setup), [`app/Modules/Payroll/Services/PayrollService.php`](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Services/PayrollService.php) (Payroll Runs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_people["People Operations"]
  node_employee_lifecycle["Employee Lifecycle"]
  node_org_structure["Departments and Designations"]
end

subgraph group_workforce["Workforce Operations"]
  node_attendance["Attendance"]
  node_attendance_ingest["Attendance API Ingestion"]
  node_leave["Leave Management"]
  node_holidays["Holidays"]
  node_projects_tasks["Projects and Tasks"]
end

subgraph group_payroll["Payroll and Reporting"]
  node_payroll_setup["Salary Setup"]
  node_payroll_runs["Payroll Runs<br/>[PayrollService.php]"]
  node_finance_records["Payroll Records"]
  node_reports["Reports and Exports"]
end

subgraph group_platform["Portal and Administration"]
  node_portal["HR Portal<br/>[app.blade.php]"]
  node_access["Roles and Permissions"]
  node_announcements["Notices and Announcements"]
  node_settings["Company Settings"]
  node_dashboard["HR Dashboard"]
end

node_users(("Employees and HR"))

node_users -->|"accesses"| node_portal
node_portal -.->|"enforces permissions"| node_access
node_portal -->|"manages employees"| node_employee_lifecycle
node_employee_lifecycle -.->|"assigns organization"| node_org_structure
node_portal -->|"records attendance"| node_attendance
node_attendance_ingest -->|"submits entries"| node_attendance
node_portal -->|"requests approvals"| node_leave
node_portal -->|"manages holidays"| node_holidays
node_portal -->|"coordinates work"| node_projects_tasks
node_portal -->|"publishes notices"| node_announcements
node_portal -->|"configures salaries"| node_payroll_setup
node_payroll_setup -->|"generates payroll"| node_payroll_runs
node_payroll_runs -->|"produces payslips"| node_finance_records
node_portal -->|"manages finance records"| node_finance_records
node_portal -->|"reviews reports"| node_reports
node_portal -->|"configures company"| node_settings
node_portal -->|"views summaries"| node_dashboard

click node_portal "https://github.com/devnawjesh/hr-payroll/blob/main/resources/views/layouts/app.blade.php"
click node_access "https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Users"
click node_employee_lifecycle "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Employees/Http/Controllers/EmployeeResignationController.php"
click node_org_structure "https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Departments"
click node_attendance "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Attendance/Http/Controllers/AttendanceController.php"
click node_attendance_ingest "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Attendance/Http/Controllers/Api/AttendanceIngestionController.php"
click node_leave "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Leaves/Http/Controllers/LeaveApplicationController.php"
click node_holidays "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Holidays/Http/Controllers/HolidayController.php"
click node_projects_tasks "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Projects/Http/Controllers/ProjectController.php"
click node_announcements "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Announcements/Http/Controllers/AnnouncementController.php"
click node_payroll_setup "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Http/Controllers/PayrollController.php"
click node_payroll_runs "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Services/PayrollService.php"
click node_finance_records "https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Http/Controllers/PayrollController.php"
click node_reports "https://github.com/devnawjesh/hr-payroll/blob/main/app/Http/Controllers/ReportController.php"
click node_settings "https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Settings"
click node_dashboard "https://github.com/devnawjesh/hr-payroll/blob/main/app/Http/Controllers/DashboardController.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_employee_lifecycle,node_org_structure toneBlue
class node_attendance,node_attendance_ingest,node_leave,node_holidays,node_projects_tasks toneAmber
class node_payroll_setup,node_payroll_runs,node_finance_records,node_reports toneMint
class node_portal,node_access,node_announcements,node_settings,node_dashboard toneRose
class node_users toneIndigo
```

## Components

### People Operations

- [Employee Lifecycle](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Employees/Http/Controllers/EmployeeResignationController.php): `app/Modules/Employees/Http/Controllers/EmployeeResignationController.php`
- [Departments and Designations](https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Departments): `app/Modules/Departments`

### Workforce Operations

- [Attendance](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Attendance/Http/Controllers/AttendanceController.php): `app/Modules/Attendance/Http/Controllers/AttendanceController.php`
- [Attendance API Ingestion](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Attendance/Http/Controllers/Api/AttendanceIngestionController.php): `app/Modules/Attendance/Http/Controllers/Api/AttendanceIngestionController.php`
- [Leave Management](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Leaves/Http/Controllers/LeaveApplicationController.php): `app/Modules/Leaves/Http/Controllers/LeaveApplicationController.php`
- [Holidays](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Holidays/Http/Controllers/HolidayController.php): `app/Modules/Holidays/Http/Controllers/HolidayController.php`
- [Projects and Tasks](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Projects/Http/Controllers/ProjectController.php): `app/Modules/Projects/Http/Controllers/ProjectController.php`

### Payroll and Reporting

- [Salary Setup](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Http/Controllers/PayrollController.php): `app/Modules/Payroll/Http/Controllers/PayrollController.php`
- [Payroll Runs](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Services/PayrollService.php): `app/Modules/Payroll/Services/PayrollService.php`
- [Payroll Records](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Payroll/Http/Controllers/PayrollController.php): `app/Modules/Payroll/Http/Controllers/PayrollController.php`
- [Reports and Exports](https://github.com/devnawjesh/hr-payroll/blob/main/app/Http/Controllers/ReportController.php): `app/Http/Controllers/ReportController.php`

### Portal and Administration

- [HR Portal](https://github.com/devnawjesh/hr-payroll/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`
- [Roles and Permissions](https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Users): `app/Modules/Users`
- [Notices and Announcements](https://github.com/devnawjesh/hr-payroll/blob/main/app/Modules/Announcements/Http/Controllers/AnnouncementController.php): `app/Modules/Announcements/Http/Controllers/AnnouncementController.php`
- [Company Settings](https://github.com/devnawjesh/hr-payroll/tree/main/app/Modules/Settings): `app/Modules/Settings`
- [HR Dashboard](https://github.com/devnawjesh/hr-payroll/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`

### Other components

- **Employees and HR**

## Connections

- Employees and HR → HR Portal: accesses (evidence: `README.md`)
- HR Portal → Roles and Permissions: enforces permissions
- HR Portal → Employee Lifecycle: manages employees (evidence: `README.md`)
- Employee Lifecycle → Departments and Designations: assigns organization
- HR Portal → Attendance: records attendance (evidence: `README.md`)
- Attendance API Ingestion → Attendance: submits entries (evidence: `app/Modules/Attendance/Http/Controllers/Api/AttendanceIngestionController.php`)
- HR Portal → Leave Management: requests approvals (evidence: `README.md`)
- HR Portal → Holidays: manages holidays (evidence: `README.md`)
- HR Portal → Projects and Tasks: coordinates work (evidence: `README.md`)
- HR Portal → Notices and Announcements: publishes notices (evidence: `README.md`)
- HR Portal → Salary Setup: configures salaries (evidence: `README.md`)
- Salary Setup → Payroll Runs: generates payroll (evidence: `README.md`)
- Payroll Runs → Payroll Records: produces payslips (evidence: `README.md`)
- HR Portal → Payroll Records: manages finance records (evidence: `README.md`)
- HR Portal → Reports and Exports: reviews reports (evidence: `README.md`)
- HR Portal → Company Settings: configures company (evidence: `README.md`)
- HR Portal → HR Dashboard: views summaries (evidence: `README.md`)
