@php
$fileTypes = [
'drawing' => ['label' => 'Drawing Files', 'icon' => 'fa-drafting-compass'],
'material_spec' => ['label' => 'Material Specification', 'icon' => 'fa-file-alt'],
'rfq_form' => ['label' => 'RFQ Form Files', 'icon' => 'fa-file-invoice'],
'annexure' => ['label' => 'Annexure Files', 'icon' => 'fa-file-archive']
];
$hasFiles = false;
@endphp
@foreach ($fileTypes as $type => $info)
@php
$files = $rfq->rfqFiles->where('file_type', $type);
@endphp
@if ($files->count())
@php $hasFiles = true; @endphp
@endif
@endforeach
@if(!$hasFiles)
@endif