@php $statusClass = match ($file->status) { \App\Models\EnothiFile::STATUS_APPROVED, \App\Models\EnothiFile::STATUS_CLOSED => 'success', \App\Models\EnothiFile::STATUS_REJECTED => 'danger', \App\Models\EnothiFile::STATUS_IN_REVIEW, \App\Models\EnothiFile::STATUS_SUBMITTED => 'warning', \App\Models\EnothiFile::STATUS_RETURNED => 'dark', default => 'secondary', }; $isAdmin = auth()->user()->user_type === 'admin'; $approveRoute = $isAdmin ? route('enothi.approve', $file->id) : route('employee.enothi.approve', $file->id); $rejectRoute = $isAdmin ? route('enothi.reject', $file->id) : route('employee.enothi.reject', $file->id); $sendBackRoute = $isAdmin ? route('enothi.send_back', $file->id) : route('employee.enothi.send_back', $file->id); $forwardRoute = $isAdmin ? route('enothi.forward', $file->id) : route('employee.enothi.forward', $file->id); $forwardUsers = $forwardUsers ?? collect(); $nextApprover = $nextApprover ?? null; $attachmentDownloadRoute = $isAdmin ? 'enothi.attachments.download' : 'employee.enothi.attachments.download'; $noteDownloadRoute = $isAdmin ? 'enothi.notes.download' : 'employee.enothi.notes.download'; $noteRoute = $isAdmin ? route('enothi.note', $file->id) : null; $slaOverdue = !empty($isOverdue) && $isOverdue; $noteAttachments = $file->notes->filter(fn ($note) => filled($note->attachment_path)); $hasAttachments = $file->attachments->isNotEmpty() || $noteAttachments->isNotEmpty(); @endphp
{{ __('No notes yet.') }}
@endforelse{{ __('Send this file to a colleague at the same level with a forward note.') }}