Monthly Leave Requests Report

{{ \Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y') }}

@php $totalLeaves = 0; foreach($leaveData as $leaves) { $totalLeaves += $leaves->count(); } @endphp
Total Leave Requests This Month: {{ $totalLeaves }}
@forelse($leaveData as $userId => $leaves) @foreach($leaves as $leave) @endforeach @empty @endforelse
Employee No Name Leave Type Start Date End Date Status
{{ $leave->user->employee?->employee_no ?? 'N/A' }} {{ $leave->user->name }} {{ $leave->leave_type }} {{ $leave->start_date->format('M d, Y') }} {{ $leave->end_date->format('M d, Y') }} @if($leave->status === 'Approved') Approved @elseif($leave->status === 'Declined') Declined @else Pending @endif
No leave requests found