@include('admin.header')

<div class="container">
    <h1>RFQ Details #{{ $rfq->id }}</h1>

    <div class="card mt-4">
        <div class="card-header">
            RFQ Information
        </div>
        <div class="card-body ">
           <div class="row">
    <div class="col-md-2"><p><strong>RFQ Number:</strong> {{ $rfq->rfq_number ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Item Description:</strong> {{ $rfq->itemDescription->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Brand:</strong> {{ $rfq->brand->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Size Range:</strong> {{ $rfq->sizeRange->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Color:</strong> {{ $rfq->color->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Fabric Composition:</strong> {{ $rfq->fabricComposition->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Fabric Type:</strong> {{ $rfq->fabricType->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Yarn Count:</strong> {{ $rfq->yarnCount->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Fabric Weight:</strong> {{ $rfq->fabricWeight->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Quantity:</strong> {{ $rfq->quantity ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Target Price:</strong> {{ $rfq->target_price ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Port of Landing:</strong> {{ $rfq->portOfLanding->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Country of Origin:</strong> {{ $rfq->countryOfOrigin->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Port of Discharge:</strong> {{ $rfq->portOfDischarge->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Final Destination:</strong> {{ $rfq->finalDestination->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Delivery Term:</strong> {{ $rfq->deliveryTerm->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Shipment Mode:</strong> {{ $rfq->shipmentMode->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Payment Term:</strong> {{ $rfq->paymentTerm->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Payment Mode:</strong> {{ $rfq->paymentMode->name ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Status:</strong> {{ ucfirst($rfq->status) }}</p></div>
    <div class="col-md-2"><p><strong>Remarks:</strong> {{ $rfq->remarks ?? 'N/A' }}</p></div>
    <div class="col-md-2"><p><strong>Created At:</strong> {{ $rfq->created_at->format('Y-m-d H:i:s') }}</p></div>
    <div class="col-md-2"><p><strong>Updated At:</strong> {{ $rfq->updated_at->format('Y-m-d H:i:s') }}</p></div>
</div>

        </div>
        <div class="card-footer">
            <a href="{{ route('admin.rfq.edit', $rfq->id) }}" class="btn btn-primary"><i class="fas fa-edit"></i> Update</a>
            <a href="{{ route('admin.rfq.index') }}" class="btn btn-success"><i class="fas fa-arrow-left"></i>  Back</a>
        </div>
    </div>
</div>
@include('admin.footer')


