Leave Calendar
View all approved leaves in calendar format
@if(!auth()->user()->isManager())
@endif
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
● Approved Leave
● Pending Leave
● Rejected Leave
● Replacement Credit
Click on any leave entry to view full details including dates, type, and reason
| Employee |
From |
To |
Applied |
Status |
Actions |
@forelse($leaves ?? [] as $leave)
| {{ $leave->employee->full_name ?? '' }} |
{{ $leave->start_date ? $leave->start_date->format('M d, Y') : '' }} |
{{ $leave->end_date ? $leave->end_date->format('M d, Y') : '' }} |
{{ $leave->created_at ? $leave->created_at->format('M d, Y') : '' }} |
@if($leave->status === 'pending')
Pending
@elseif($leave->status === 'approved')
Approved
@elseif($leave->status === 'rejected')
Rejected
@else
{{ ucfirst($leave->status ?? 'Unknown') }}
@endif
|
@if($leave->status === 'pending')
@else
@endif
|
@empty
| No leave applications found. |
@endforelse
@if(!auth()->user()->isManager())
Apply for Replacement Credit
You may apply for replacement credit if you have worked on a public holiday or weekend.
@if(!auth()->user()->isManager())
@endif
| Employee |
From |
To |
Applied |
Status |
@forelse($replacementCredits ?? [] as $credit)
| {{ $credit->employee->full_name ?? '' }} |
{{ $credit->from_date ? $credit->from_date->format('M d, Y') : '' }} |
{{ $credit->to_date ? $credit->to_date->format('M d, Y') : '' }} |
{{ $credit->created_at ? $credit->created_at->format('M d, Y') : '' }} |
@if($credit->status === 'pending')
Pending
@elseif($credit->status === 'approved')
Approved
@elseif($credit->status === 'rejected')
Rejected
@else
{{ ucfirst($credit->status ?? 'Unknown') }}
@endif
|
@empty
| No replacement credit applications found. |
@endforelse
@endif
-
-
-
@forelse($leaveBalances ?? [] as $department => $departmentBalances)
{{ $department }} ({{ $departmentBalances->count() }} employees)
| Employee |
Employee # |
MoS |
Annual |
CarryForward |
Compassionate |
Hospitalization |
Maternity |
Paternity |
Replacement |
Sick |
@foreach($departmentBalances as $balance)
| {{ $balance->employee->full_name }} |
{{ $balance->employee->employee_id }} |
{{ $balance->months_of_service }} |
{{ $balance->annual_leave }} |
{{ $balance->carry_forward }} |
{{ $balance->compassionate }} |
{{ $balance->hospitalization }} |
{{ $balance->maternity }} |
{{ $balance->paternity }} |
{{ $balance->replacement }} |
{{ $balance->sick }} |
@endforeach
@empty
No Departments Found
No employees found for leave balance calculation.
@endforelse
@if($leaveBalances && $leaveBalances->count() > 1)
@foreach($leaveBalances->skip(1) as $department => $departmentBalances)
{{ $department }} ({{ $departmentBalances->count() }} employees)
| Employee |
Employee # |
MoS |
Annual |
CarryForward |
Compassionate |
Hospitalization |
Maternity |
Paternity |
Replacement |
Sick |
@foreach($departmentBalances as $balance)
| {{ $balance->employee->full_name }} |
{{ $balance->employee->employee_id }} |
{{ $balance->months_of_service }} |
{{ $balance->annual_leave }} |
{{ $balance->carry_forward }} |
{{ $balance->compassionate }} |
{{ $balance->hospitalization }} |
{{ $balance->maternity }} |
{{ $balance->paternity }} |
{{ $balance->replacement }} |
{{ $balance->sick }} |
@endforeach
@endforeach
@endif
@php
$totalEmployees = $leaveBalances ? $leaveBalances->flatten()->count() : 0;
@endphp
1 - {{ $totalEmployees }} of {{ $totalEmployees }} items
1
| Leave Type |
Entitlement |
Jan |
Feb |
Mar |
Apr |
May |
Jun |
Jul |
Aug |
Sep |
Oct |
Nov |
Dec |
Total Taken |
Balance |
| Please select an employee to view leave report |
1
| Employee |
Employee # |
Entitlement |
Jan |
Feb |
Mar |
Apr |
May |
Jun |
Jul |
Aug |
Sep |
Oct |
Nov |
Dec |
Total Taken |
Balance |
| Select policy and department to view department report |
1