@extends('layouts.dashboard.superadminapp') @section('title', 'RFQ Details') @section('styles') @endsection @section('content')

UEPL | RFQ Details

day, 00 month 0000

{{ $rfq->rfq_no }}

{{ $rfq->customerInfo->company ?? 'N/A' }}

@if ($rfq->status == 'approved') Approved @elseif ($rfq->status == 'rejected') Rejected @else Pending @endif {{ \Carbon\Carbon::parse($rfq->rfq_date)->format('d M Y') }}
RFQ Type
{{ $rfq->rfq_type ?: '-' }}
Product Type
{{ $rfq->product_type ?: '-' }}
Part No
{{ $rfq->part_no ?: '-' }}
Quantity
{{ $rfq->quantity }} {{ $rfq->uom }}
RFQ Information
RFQ No {{ $rfq->rfq_no }}
RFQ Date {{ \Carbon\Carbon::parse($rfq->rfq_date)->format('d-m-Y') }}
Customer {{ $rfq->customerInfo->company ?? '-' }}
Customer Ref No {{ $rfq->cus_ref_no ?: '-' }}
RFQ Type {{ $rfq->rfq_type ?: '-' }}
Product Type {{ $rfq->product_type ?: '-' }}
Status @if ($rfq->status == 'approved') Approved @elseif ($rfq->status == 'rejected') Rejected @else Pending @endif
Product Details
Part No {{ $rfq->part_no ?: '-' }}
Project/Material No {{ $rfq->project_material_no ?: '-' }}
Drawing No {{ $rfq->drawing_no ?: '-' }}
Drawing Revision {{ $rfq->drawing_rev ?: '-' }}
Quantity {{ $rfq->quantity }} {{ $rfq->uom }}
Description {{ $rfq->description ?: '-' }}
Raw Materials
@php $rawMaterials = json_decode($rfq->raw_material, true); @endphp @if (is_array($rawMaterials) && count($rawMaterials))
@foreach ($rawMaterials as $matId) {{ $rawMaterialNames[$matId] ?? 'Unknown Material (ID: '.$matId.')' }} @endforeach
@else

No raw materials specified

@endif
@if($rfq->note)
Notes

{{ $rfq->note }}

@endif
Attachments
@php $fileTypes = [ 'drawing' => ['label' => 'Drawing Files', 'icon' => 'fa-drafting-compass'], 'material_spec' => ['label' => 'Material Specification', 'icon' => 'fa-file-alt'], 'rfq_form' => ['label' => 'RFQ Form', 'icon' => 'fa-file-invoice'], 'annexure' => ['label' => 'Annexure', '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
{{ $info['label'] }}
@foreach ($files as $file) {{ Str::limit($file->file_name, 20) }} @endforeach
@endif @endforeach
@if(!$hasFiles)

No attachments available

@endif
Back to List Edit RFQ
@endsection