@extends('layouts.dashboard.superadminapp') @section('title', 'Edit RFQ') @section('content')

UEPL / Edit Request For Quotation

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Edit Request For Quotation



@csrf @method('PUT')
@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
@endfor
{{-- Will be filled by JS for uniformity --}}
@endsection @section('scripts') @endsection