{{-- resources/views/vendor/rfq/show.blade.php --}} @extends('layouts.vendor.vendor') @section('title', 'RFQ Details') @section('content')

RFQ Details - {{ $rfqVendor->rfq->rfq_number }}

{{-- RFQ Meta Info --}}

Description: {{ $rfqVendor->rfq->description }}

Item Requested: {{ ucfirst($rfqVendor->rfq->category) }}

Site Location: {{ ucfirst($rfqVendor->rfq->site_location) }}

Created On: {{ $rfqVendor->rfq->created_at->format('d M, Y') }}

Delivery Date: {{ \Carbon\Carbon::parse($rfqVendor->rfq->delivery_date)->format('d M, Y') }}

Status: {{ ucfirst($rfqVendor->status) }}

{{-- Vendor Info --}} {{-- Draft Info --}} @if($rfqVendor->status == 'draft')
You have a saved draft. You can continue editing and submit later.
@endif {{-- Attachments --}} @if($rfqVendor->rfq->attachments)

Attachments:

@foreach($rfqVendor->rfq->attachments as $file) {{ $file }}
@endforeach
@endif {{-- Quote Form --}}
@csrf
Items Requested
@foreach($rfqVendor->rfq->items as $index => $item) @php $quoteItem = $rfqVendor->quoteItems ->where('rfq_item_id', $item->id) ->first(); @endphp @endforeach
ID Product Name Quantity Your Quote (per unit) Comments
{{ $index + 1 }} {{ $item->product_name }} {{ $item->quantity }}
{{-- Total --}}

Total Quote: ₹ 0.00

{{-- Actions --}} @if($rfqVendor->status == 'pending' || $rfqVendor->status == 'draft') @endif @if($rfqVendor->status == 'submitted') Quotation Submitted @endif @if($rfqVendor->status == 'rejected') RFQ Rejected @endif
{{-- JS --}} @endsection