@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') }}/{{ __('Project') }} | {{ __('Department') }} | {{ __('Label') }} | {{ __('Start Date') }} | {{ __('End Date') }} | {{ __('Status') }} | {{ __('Comment / Notes') }} | {{ __('Received') }} | {{ __('File') }} | {{ __('Actions') }} | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($documents->currentPage() - 1) * $documents->perPage() }} | {{ $doc->project?->name ?? $doc->client?->name ?? $doc->employee?->name ?? '—' }} | {{ $doc->department->name ?? '—' }} | {{ $doc->label }} | {{ $doc->start_date }} | {{ $doc->end_date }} | {{ __($doc->display_status) }} |
@if(filled($doc->comment))
{{ $doc->comment }}
@else
—
@endif
|
@if(!$doc->received_at && $doc->employee_id === auth()->id()) @elseif($doc->received_at) {{ __('Yes') }} @else — @endif | @if($doc->path) {{ __('View') }} @else {{ __('No File') }} @endif | @can('documents edit') @endcan @can('documents delete') @endcan | |
| {{ __('No records found.') }} | |||||||||||