@extends('admin.layouts.app') @section('title','Quote Details') @section('breadcrumb','Quote Details') @section('content')
←   Back to Quote Requests
@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.

@csrf
{{ $qdResponded ? 'Response recorded' : ($qdRejected ? 'Request rejected' : ($qdStatus === 'shipment' ? 'Moved to shipment' : 'Awaiting response')) }}{{ session('success') ? 'Updated' : 'Status saved automatically' }}
Respond to Quote

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')
@csrf
@else ✓ Payment verified @endif
@csrf

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
@csrf @error('admin_response')
{{ $message }}
@enderror

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 ?: '—' }}
@endsection