@php
$fileLabels = [
'drawing' => 'Drawing File',
'material_spec' => 'Material Specification File',
'rfq_form' => 'RFQ Form File',
'annexure' => 'Annexure File'
];
$types = array_keys($fileLabels);
@endphp
@for ($i = 0; $i < count($types); $i += 2)
@for ($j = 0; $j < 2; $j++)
@php
$index = $i + $j;
if (!isset($types[$index])) continue;
$type = $types[$index];
$label = $fileLabels[$type];
$files = $rfq->rfqFiles->where('file_type', $type);
$inputId = $type . 'Files';
$previewId = $type . 'Files_preview';
@endphp
@if ($files->count())
@foreach ($files as $file)
@endforeach
@endif
@endfor