| {{ __('SL') }}. | {{ __('Employee') }} | {{ __('Month') }} | {{ __('Department') }} | {{ __('Start Date') }} | {{ __('End Date') }} | {{ __('Leave Type') }} | {{ __('Leave Duration') }} | {{ __('Status') }} | ||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ ($leaves->currentPage() - 1) * $leaves->perPage() + $loop->iteration }} | {{ $leave->employee->name ?? '' }} | {{ ucfirst($leave->month) }} | {{ $leave->department->name ?? '' }} | {{ formatted_date($leave->start_date) }} | {{ formatted_date($leave->end_date) }} | {{ $leave->leave_type->name ?? '' }} | {{ $leave->leave_duration }} {{ __('Days') }} | @if ($leave->status == 'pending')
{{__('Pending')}}
|
@elseif ($leave->status == 'approved')
{{__('Approved')}}
|
@elseif ($leave->status == 'rejected')
{{__('Rejected')}}
|
@endif