@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if (session('existFile')) @endif {{-- @if (session('files.size')) @endif --}}
@if ($getSection === 'Sickness') @elseif($getSection === 'Holiday') @else @endif @if ($section === 'Employee' || $section === 'IDDoc') @foreach ($getUsers as $getUser) @endforeach @endif @if ($section != '')

File size limit is 8 MB (8,192 KB)

@endif
{{-- Script --}} @push('scripts') @endpush @script @endscript {{-- End Script --}}
@if ($fileUploaded == true)

@if ($section === 'Company') @endif @foreach ($getDocuments as $getDocs) id }} x-show="show" x-data="{ show: true }" x-transition.delay.1000ms> @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 @if ($section === 'Company') @endif @endforeach
Doc ID Doc Name Section Employee DescriptionRead RequestAction
{{ $getDocs->id }} {{ $getDocs->docname }} {{ $getDocs->section }} @if (!empty($getDocs->employee_id)) {{ $getDocs->employeename->name }} @else N/A @endif @php $GetDocID = $getDocs->id; @endphp
@endif