How amurtigro1/leave-management-system works
This is a Laravel leave and compensatory-time (overtime/CTO) management application with employee, supervisor, HR, and admin roles. The apparent workflow is request filing, role-based review, balance or CTO-log updates, and status notifications; the sampled controllers and models support those domains, but the web routes were not inspected, so initiating-to-controller routing is shown only as unverified. Holiday lookup and scheduled balance/expiry maintenance are additional capabilities. The README is the stock Laravel README, so product scope is inferred from the source tree and excerpts.
Main entry points: HrController.php HR workflows · AdminController.php Admin workflows · Leave.php Leave records · OvertimeRequest.php Overtime records
Components 19
Access and roles
- Authentication
app/Http/Controllers/Auth
Leave and CTO
- Employee requests
app/Http/Controllers/EmployeeController.php - Supervisor review
app/Http/Controllers/SupervisorController.php - Overtime requests
app/Http/Controllers/OvertimeRequestController.php
HR and administration
- HR workflows
app/Http/Controllers/HrController.php - Admin workflows
app/Http/Controllers/AdminController.php
Domain records
- Leave records
app/Models/Leave.php - Overtime records
app/Models/OvertimeRequest.php - User and balances
app/Models/User.php - Leave violations
app/Models/LeaveViolation.php - CTO logs
app/Models/CocLog.php - Yearly holidays
app/Models/YearlyHoliday.php
Holidays and notices
- Holiday lookup
app/Services/YearlyHolidayService.php - Status notifications
app/Notifications/LeaveStatusNotification.php - Scheduled maintenance
app/Console/Commands
Other components
- Employee
- Supervisor
- HR staff
- Administrator
Connections 28
- Employee → Authentication: signs in
- Employee → Employee requests: files requests
- Supervisor → Supervisor review: reviews requests
- HR staff → HR workflows: handles workflows
- Administrator → Admin workflows: handles workflows
- Employee requests → Leave records: reads and writes
app/Http/Controllers/EmployeeController.php - Employee requests → Overtime records: reads and writes
app/Http/Controllers/EmployeeController.php - Employee requests → Holiday lookup: uses dates
app/Http/Controllers/EmployeeController.php - Supervisor review → Leave records: reviews
app/Http/Controllers/SupervisorController.php - Supervisor review → Overtime records: reviews
app/Http/Controllers/SupervisorController.php - Supervisor review → Status notifications: notifies
app/Http/Controllers/SupervisorController.php - HR workflows → Leave records: reads and writes
app/Http/Controllers/HrController.php - HR workflows → Overtime records: reads and writes
app/Http/Controllers/HrController.php - HR workflows → User and balances: reads users
app/Http/Controllers/HrController.php - HR workflows → Holiday lookup: uses dates
app/Http/Controllers/HrController.php - HR workflows → Status notifications: notifies
app/Http/Controllers/HrController.php - Admin workflows → Leave records: reads and writes
app/Http/Controllers/AdminController.php - Admin workflows → Overtime records: reads and writes
app/Http/Controllers/AdminController.php - Admin workflows → User and balances: reads users
app/Http/Controllers/AdminController.php - Admin workflows → CTO logs: updates logs
app/Http/Controllers/AdminController.php - Admin workflows → Status notifications: notifies
app/Http/Controllers/AdminController.php - Overtime requests → Overtime records: handles requests
- Holiday lookup → Yearly holidays: queries dates
app/Services/YearlyHolidayService.php - Leave records → Leave violations: has violations
app/Models/Leave.php - User and balances → Leave records: has leaves
app/Models/User.php - User and balances → Overtime records: has requests
app/Models/User.php - Scheduled maintenance → User and balances: adjusts balances
- Scheduled maintenance → CTO logs: expires logs