@extends('admin.layouts.app')
@section('title','Quote Details')
@section('breadcrumb','Quote Details')
@section('content')
@php
$qdStatus = strtolower((string)($quote->status ?? 'pending'));
$qdResponded = in_array($qdStatus, ['responded','quoted','approved']);
$qdRejected = in_array($qdStatus, ['rejected','declined']);
$qdShipment = $qdStatus === 'shipment';
$qdStatusLabel = ucfirst($quote->status ?? 'pending');
$qdRequested = $quote->created_at?->format('d M Y, h:i A') ?: '—';
@endphp
QUOTE MANAGEMENT
Shipment Request #{{ $quote->id }}
Full details submitted by the customer or website visitor.
Quote Amount & Payment
Set the final amount and optionally email the customer the payment instructions, QR code, and Super Admin bank details.
@if($errors->any())@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
Payment status: {{ ucfirst($quote->payment_status ?? 'pending') }} {{ ($quote->payment_status ?? 'pending') === 'paid' ? 'Payment has been confirmed by staff.' : 'After checking the bank account, mark payment as received here. Bank-transfer QR payments are not automatically verified.' }}
@if(($quote->payment_status ?? 'pending') !== 'paid')
@else
✓ Payment verified @endif
Respond to Customer
Write the response for this quote. It will be saved to the customer account and emailed automatically to {{ $quote->email }}.
@if($quote->admin_response)
Last sent {{ $quote->response_sent_at?->format('d M Y, H:i') }} {{ $quote->admin_response }}
@endif
Customer Contact
Name {{ $quote->name ?: '—' }}
Email {{ $quote->email ?: '—' }}
Phone {{ $quote->phone ?: '—' }}
Customer Account {{ $quote->user?->email ?: 'Guest / Website visitor' }}
Pickup & Delivery
Pickup Location / Origin {{ $quote->origin ?: '—' }}
Delivery Location / Destination {{ $quote->destination ?: '—' }}
Pickup Date {{ $quote->pickup_date?->format('d M Y') ?: '—' }}
Requested On {{ $qdRequested }}
Shipment Information
Shipment Category {{ $quote->shipment_category ?: '—' }}
Package Type {{ $quote->package_type ?: '—' }}
Delivery Service {{ $quote->service_type ?: '—' }}
Handling Method {{ $quote->shipment_handling ?: '—' }}
Weight {{ $quote->weight_kg !== null ? $quote->weight_kg.' kg' : '—' }}
Dimensions (L × W × H) {{ $quote->length !== null && $quote->width !== null && $quote->height !== null ? $quote->length.' × '.$quote->width.' × '.$quote->height.' '.($quote->dimension_unit ?: '') : '—' }}
Additional Details / Notes {{ $quote->message ?: '—' }}
Quote Timeline
Quote Submitted {{ $qdRequested }} Request received from website
Under Review {{ $qdShipment ? 'Moved to shipment' : ($qdResponded ? 'Reviewed' : ($qdRejected ? 'Rejected' : 'Pending')) }}
Response Sent {{ $qdResponded ? 'Response recorded' : '—' }}
Quote Completed {{ $qdShipment ? 'Shipment' : ($qdResponded ? 'Responded' : ($qdRejected ? 'Rejected' : '—')) }}
@endsection