| {{ __('Employee') }} |
{{ __('Category') }} |
{{ __('Date Range') }} |
{{ __('Days') }} |
{{ __('Reason') }} |
{{ __('Status') }} |
{{ __('Action') }} |
@forelse($applications as $application)
@php($empName = trim(($application->employee?->first_name ?? '').' '.($application->employee?->last_name ?? '')))
| {{ $empName !== '' ? $empName : '-' }} ({{ $application->employee?->employee_code ?? '-' }}) |
{{ $application->leaveCategory?->name ?? '-' }} |
{{ $application->start_date }} to {{ $application->end_date }} |
{{ number_format((float) $application->total_days, 2) }} |
{{ \Illuminate\Support\Str::limit((string) $application->reason, 80) }} |
@if($application->status === 'approved')
{{ __('Approved') }}
@elseif($application->status === 'rejected')
{{ __('Rejected') }}
@else
{{ __('Pending') }}
@endif
|
@if($application->status === 'pending')
@else
{{ $application->approval_remarks ?: '-' }}
@endif
|
@empty
| {{ __('No leave requests found.') }} |
@endforelse
{{ $applications->links('pagination::bootstrap-5') }}