| Doc ID | Doc Name | Section | Employee | Description | @if ($section === 'Company')Read Request | @endifAction | @foreach ($getDocuments as $getDocs)
|---|---|---|---|---|---|---|
| {{ $getDocs->id }} | @php if (!function_exists('getFileTypeIcon')) { function getFileTypeIcon($extension) { $icons = [ 'docx' => 'fas fa-file-word fa-lg text-primary', 'doc' => 'fas fa-file-word fa-lg text-primary', 'ppt' => 'fas fa-file-powerpoint fa-lg text-orange', 'pttx' => 'fas fa-file-powerpoint fa-lg text-orange', 'pdf' => 'fas fa-file-pdf fa-lg text-danger', 'xls' => 'fas fa-file-excel fa-lg text-success', 'csv' => 'fas fa-file-csv fa-lg text-success', 'png' => 'fas fa-file-image fa-lg text-info', 'jpg' => 'fas fa-file-image fa-lg text-info', 'jpeg' => 'fas fa-file-image fa-lg text-info', 'psd' => 'fas fa-file-image fa-lg text-info', 'gif' => 'fas fa-file-image fa-lg text-info', 'bmp' => 'fas fa-file-image fa-lg text-info', 'mov' => 'fas fa-file-video fa-lg text-Purple', 'avi' => 'fas fa-file-video fa-lg text-Purple', 'mp4' => 'fas fa-file-video fa-lg text-Purple', 'mp3' => 'fas fa-file-audio fa-lg text-warning', 'wav' => 'fas fa-file-audio fa-lg text-warning', 'aiff' => 'fas fa-file-audio fa-lg text-warning', 'wma' => 'fas fa-file-audio fa-lg text-warning', 'default' => 'far fa-file fa-lg', ]; return $icons[$extension] ?? $icons['default']; } } $extension = pathinfo($getDocs->docname, PATHINFO_EXTENSION); $fileIcon = getFileTypeIcon($extension); @endphp{{ $getDocs->docname }} | {{ $getDocs->section }} | @if (!empty($getDocs->employee_id)) {{ $getDocs->employeename->name }} @else N/A @endif | @if ($section === 'Company') | @endif | @php $GetDocID = $getDocs->id; @endphp |