@php $employeeOptions = $employees->pluck('name', 'id')->toArray(); $hasActiveFilters = filled($filterEmployee) || filled($filterStatus) || filled($filterType) || filled($filterFrom) || filled($filterTo); @endphp
| {{-- @if($c['key'])--}} {{-- --}} {{-- @else--}} {{-- {{ $c['label'] }}--}} {{-- @endif--}} {{ $c['label'] }} | @endforeach||||||||
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($absences->currentPage() - 1) * $absences->perPage() }} | {{ $a->employee->name ?? '—' }} | {{ optional($a->date)->format('Y-m-d') }} | {{ __(ucfirst(str_replace('_',' ',$a->type))) }} | {{ $a->hours ?? '—' }} | {{ $a->reason ?? '—' }} | {{ __(ucfirst($a->status)) }} | @if($a->file_url) {{ __('View') }} @else — @endif |
@can('absences edit')
@if($a->status === 'pending')
@endif
@endcan
@can('absences delete')
@endcan
@can('absences approve')
@if($a->status === 'pending')
@endif
@endcan
{{__("View")}}
|
| {{ __('No records found.') }} | ||||||||