@section('page-title', 'Leave History') @section('content')
Back to Leave Requests

Leave History - {{ $employee->first_name }} {{ $employee->last_name }}

{{ $employee->employee_id }} • {{ $employee->position }}

Total Requests

{{ $stats['total_leaves'] }}

Approved

{{ $stats['approved_leaves'] }}

Pending

{{ $stats['pending_leaves'] }}

Rejected

{{ $stats['rejected_leaves'] }}

Total Days Taken

{{ $stats['total_days_taken'] }}

All Leave Requests

@forelse($leaves as $leave) @empty @endforelse
Leave Type Start Date End Date Days Status Approved By Actions
{{ $leave->leaveType->name }}
{{ $leave->start_date->format('M d, Y') }} {{ $leave->end_date->format('M d, Y') }} {{ $leave->days_requested }} {{ ucfirst($leave->status) }} {{ $leave->approver->name ?? '-' }} View

No leave history found

@if($leaves->hasPages())
{{ $leaves->links() }}
@endif