@php $employeeOptions = $employees->pluck('name', 'id')->toArray(); $departmentOptions = $departments->pluck('name', 'id')->toArray(); $hasActiveFilters = filled($filterEmployee) || filled($filterDepartment) || filled($filterLabel) || filled($filterStatus) || filled($filterStartDate) || filled($filterEndDate) || filled($filterCreatedDate); @endphp
| # | {{ __('Employee') }}/{{ __('Client') }} | {{ __('Department') }} | {{ __('Label') }} | {{ __('Start Date') }} | {{ __('End Date') }} | {{ __('Status') }} | {{ __('Received') }} | {{ __('File') }} | {{ __('Actions') }} | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($documents->currentPage() - 1) * $documents->perPage() }} | {{ $doc->employee->name ?? ($doc->client->name ?? '—') }} | {{ $doc->department->name ?? '—' }} | {{ $doc->label }} | {{ $doc->start_date }} | {{ $doc->end_date }} | {{ __($doc->display_status) }} | @if(!$doc->received_at) @else {{ __('Yes') }} @endif | @if($doc->path) {{ __('View') }} @else {{ __('No File') }} @endif | @can('documents edit') @endcan @can('documents delete') @endcan | ||
| {{ __('No records found.') }} | |||||||||||