# dhivyadharshini585/hrms architecture

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

## Overview

This repository is an HRM application: employees and managers use a React interface backed by a Laravel API to manage workforce records and operational workflows. The main request path runs from the frontend routes and service client to API routes and domain controllers. The product also covers recruitment, attendance and leave, payroll, performance, training, and workplace operations. Source excerpts are selective and the README is empty, so the graph preserves tree-visible capabilities but limits internal connections to relationships supported by the supplied source index or excerpts.

Main entry points: [`hrm-backend/routes/api.php`](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/routes/api.php) (Laravel API routes), [`hrm-frontend/src/App.jsx`](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/App.jsx) (Web application), [`hrm-frontend/src/services/api.js`](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/services/api.js) (HTTP client), [`hrm-backend/app/Http/Controllers/CandidateController.php`](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/CandidateController.php) (Recruitment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_authui["Authentication context<br/>[AuthContext.jsx]"]
  node_webapp["Web application<br/>[App.jsx]"]
  node_webpages["HR pages"]
  node_webservices["API services"]
  node_apiclient["HTTP client<br/>[api.js]"]
end

subgraph group_people["People operations"]
  node_employee["Employee records"]
  node_org["Departments"]
  node_employee_model[("Employee data<br/>[Employee.php]")]
end

subgraph group_talent["Talent and performance"]
  node_recruitment["Recruitment"]
  node_candidateflow["Candidate transitions"]
  node_interviews["Interviews"]
  node_offers["Offer letters"]
  node_onboarding["Onboarding"]
  node_performance["Performance reviews"]
  node_training["Training"]
  node_review_model[("Review data")]
end

subgraph group_work["Workforce operations"]
  node_attendance["Attendance"]
  node_leave["Leave requests"]
  node_payroll["Payroll"]
  node_timesheets["Timesheets"]
  node_projects["Projects and tasks"]
  node_assets["Assets"]
  node_helpdesk["Support tickets"]
  node_payroll_model[("Payroll data<br/>[Payroll.php]")]
end

subgraph group_platform["API and identity"]
  node_reports["Reports"]
  node_api["Laravel API routes<br/>[api.php]"]
  node_user[("User accounts<br/>[User.php]")]
end

node_actor(("HR staff and employees"))

node_actor -->|"uses"| node_webapp
node_webapp -->|"loads"| node_authui
node_webapp -.->|"routes to"| node_webpages
node_authui -->|"calls"| node_apiclient
node_webservices -.->|"uses"| node_apiclient
node_apiclient -.->|"sends requests"| node_api
node_api -->|"routes to"| node_employee
node_api -->|"routes to"| node_attendance
node_api -->|"routes to"| node_leave
node_api -->|"routes to"| node_payroll
node_api -->|"routes to"| node_timesheets
node_api -->|"routes to"| node_projects
node_api -->|"routes to"| node_assets
node_api -->|"routes to"| node_helpdesk
node_api -.->|"routes to"| node_recruitment
node_api -.->|"routes to"| node_interviews
node_api -.->|"routes to"| node_offers
node_api -.->|"routes to"| node_onboarding
node_api -.->|"routes to"| node_performance
node_api -.->|"routes to"| node_training
node_api -.->|"routes to"| node_reports
node_recruitment -.->|"transitions via"| node_candidateflow
node_candidateflow -->|"updates status"| node_recruitment
node_leave -->|"notifies"| node_user
node_performance -->|"reads and writes"| node_review_model
node_employee_model -->|"belongs to"| node_user
node_payroll_model -->|"belongs to"| node_employee_model

click node_employee "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/EmployeeController.php"
click node_org "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/DepartmentController.php"
click node_attendance "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/AttendanceController.php"
click node_leave "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/LeaveRequestController.php"
click node_payroll "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PayrollController.php"
click node_timesheets "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/TimesheetController.php"
click node_projects "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/ProjectController.php"
click node_assets "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/AssetController.php"
click node_helpdesk "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/SupportTicketController.php"
click node_recruitment "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/CandidateController.php"
click node_candidateflow "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Services/CandidateStatusPipelineService.php"
click node_interviews "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/InterviewController.php"
click node_offers "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/OfferLetterController.php"
click node_onboarding "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/OnboardingController.php"
click node_performance "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PerformanceReviewController.php"
click node_training "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/TrainingController.php"
click node_reports "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PerformanceReportController.php"
click node_authui "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/context/AuthContext.jsx"
click node_webapp "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/App.jsx"
click node_webpages "https://github.com/dhivyadharshini585/hrms/tree/main/hrm-frontend/src/pages"
click node_webservices "https://github.com/dhivyadharshini585/hrms/tree/main/hrm-frontend/src/services"
click node_apiclient "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/services/api.js"
click node_api "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/routes/api.php"
click node_user "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/User.php"
click node_employee_model "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/Employee.php"
click node_review_model "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/PerformanceReview.php"
click node_payroll_model "https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/Payroll.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_authui,node_webapp,node_webpages,node_webservices,node_apiclient toneBlue
class node_employee,node_org,node_employee_model toneAmber
class node_recruitment,node_candidateflow,node_interviews,node_offers,node_onboarding,node_performance,node_training,node_review_model toneMint
class node_attendance,node_leave,node_payroll,node_timesheets,node_projects,node_assets,node_helpdesk,node_payroll_model toneRose
class node_reports,node_api,node_user,node_actor toneIndigo
```

## Components

### Web client

- [Authentication context](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/context/AuthContext.jsx): `hrm-frontend/src/context/AuthContext.jsx`
- [Web application](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/App.jsx): `hrm-frontend/src/App.jsx`
- [HR pages](https://github.com/dhivyadharshini585/hrms/tree/main/hrm-frontend/src/pages): `hrm-frontend/src/pages`
- [API services](https://github.com/dhivyadharshini585/hrms/tree/main/hrm-frontend/src/services): `hrm-frontend/src/services`
- [HTTP client](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-frontend/src/services/api.js): `hrm-frontend/src/services/api.js`

### People operations

- [Employee records](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/EmployeeController.php): `hrm-backend/app/Http/Controllers/EmployeeController.php`
- [Departments](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/DepartmentController.php): `hrm-backend/app/Http/Controllers/DepartmentController.php`
- [Employee data](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/Employee.php): `hrm-backend/app/Models/Employee.php`

### Talent and performance

- [Recruitment](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/CandidateController.php): `hrm-backend/app/Http/Controllers/CandidateController.php`
- [Candidate transitions](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Services/CandidateStatusPipelineService.php): `hrm-backend/app/Services/CandidateStatusPipelineService.php`
- [Interviews](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/InterviewController.php): `hrm-backend/app/Http/Controllers/InterviewController.php`
- [Offer letters](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/OfferLetterController.php): `hrm-backend/app/Http/Controllers/OfferLetterController.php`
- [Onboarding](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/OnboardingController.php): `hrm-backend/app/Http/Controllers/OnboardingController.php`
- [Performance reviews](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PerformanceReviewController.php): `hrm-backend/app/Http/Controllers/PerformanceReviewController.php`
- [Training](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/TrainingController.php): `hrm-backend/app/Http/Controllers/TrainingController.php`
- [Review data](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/PerformanceReview.php): `hrm-backend/app/Models/PerformanceReview.php`

### Workforce operations

- [Attendance](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/AttendanceController.php): `hrm-backend/app/Http/Controllers/AttendanceController.php`
- [Leave requests](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/LeaveRequestController.php): `hrm-backend/app/Http/Controllers/LeaveRequestController.php`
- [Payroll](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PayrollController.php): `hrm-backend/app/Http/Controllers/PayrollController.php`
- [Timesheets](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/TimesheetController.php): `hrm-backend/app/Http/Controllers/Api/TimesheetController.php`
- [Projects and tasks](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/ProjectController.php): `hrm-backend/app/Http/Controllers/Api/ProjectController.php`
- [Assets](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/AssetController.php): `hrm-backend/app/Http/Controllers/Api/AssetController.php`
- [Support tickets](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/Api/SupportTicketController.php): `hrm-backend/app/Http/Controllers/Api/SupportTicketController.php`
- [Payroll data](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/Payroll.php): `hrm-backend/app/Models/Payroll.php`

### API and identity

- [Reports](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Http/Controllers/PerformanceReportController.php): `hrm-backend/app/Http/Controllers/PerformanceReportController.php`
- [Laravel API routes](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/routes/api.php): `hrm-backend/routes/api.php`
- [User accounts](https://github.com/dhivyadharshini585/hrms/blob/main/hrm-backend/app/Models/User.php): `hrm-backend/app/Models/User.php`

### Other components

- **HR staff and employees**

## Connections

- HR staff and employees → Web application: uses
- Web application → Authentication context: loads (evidence: `hrm-frontend/src/App.jsx`)
- Web application → HR pages: routes to
- Authentication context → HTTP client: calls (evidence: `hrm-frontend/src/context/AuthContext.jsx`)
- API services → HTTP client: uses (evidence: `hrm-frontend/src/services/onboardingService.js`)
- HTTP client → Laravel API routes: sends requests
- Laravel API routes → Employee records: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Attendance: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Leave requests: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Payroll: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Timesheets: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Projects and tasks: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Assets: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Support tickets: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Recruitment: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Interviews: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Offer letters: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Onboarding: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Performance reviews: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Training: routes to (evidence: `hrm-backend/routes/api.php`)
- Laravel API routes → Reports: routes to (evidence: `hrm-backend/routes/api.php`)
- Recruitment → Candidate transitions: transitions via
- Candidate transitions → Recruitment: updates status (evidence: `hrm-backend/app/Services/CandidateStatusPipelineService.php`)
- Leave requests → User accounts: notifies (evidence: `hrm-backend/app/Http/Controllers/LeaveRequestController.php`)
- Performance reviews → Review data: reads and writes (evidence: `hrm-backend/app/Http/Controllers/PerformanceReviewController.php`)
- Employee data → User accounts: belongs to (evidence: `hrm-backend/app/Models/Employee.php`)
- Payroll data → Employee data: belongs to (evidence: `hrm-backend/app/Models/Payroll.php`)
