@extends('admin.layouts.app') @section('title','Shipment Details') @section('breadcrumb','Shipment Details') @section('content')
←   Back to Shipments
▣
SHIPMENT OPERATIONS

{{ $shipment->tracking_id }} {{ $shipment->status }}

Shipment record, submitted package information and tracking updates.

▤ Generate InvoiceDownload Invoice ↗@if($quote && $shipment->status === 'Ordered' && !$shipment->invoice && (!$shipment->documents || $shipment->documents->isEmpty()) && !$shipment->trackingLogs->contains(fn ($log) => $log->status !== 'Ordered'))
@csrf
@endif

♙ Customer & Shipment Contact

♙
Customer Account{{ $shipment->user?->name ?: 'Guest / quote visitor' }}
✉
Account Email{{ $shipment->user?->email ?: ($quote->email ?? '—') }}
♧
Sender / Origin Contact{{ $shipment->origin_name ?: '—' }}
☎
Origin Phone{{ $shipment->origin_phone ?: ($quote->phone ?? '—') }}

⌖ Pickup & Delivery

⌖
Pickup / Origin Name{{ $shipment->origin_name ?: '—' }}
⌖
Origin Phone{{ $shipment->origin_phone ?: '—' }}
⌖
Origin Address{{ $shipment->origin_address ?: '—' }}
⌖
Destination / Recipient{{ $shipment->destination_name ?: '—' }}
☎
Destination Phone{{ $shipment->destination_phone ?: '—' }}
⌖
Destination Address{{ trim(($shipment->destination_city ? $shipment->destination_city.', ' : '').($shipment->destination_country ?? '')) ?: ($shipment->destination_address ?: '—') }}
▦
Pickup Date (if submitted){{ $quote?->pickup_date?->format('d M Y') ?? '—' }}
◷
Estimated Delivery{{ $shipment->estimated_delivery_at?->format('d M Y, h:i A') ?? 'Not set' }}

◇ Package & Service Information

◇
Service Type{{ $shipment->service_type ?: ($quote->service_type ?? '—') }}
▣
Shipment Category{{ $quote->shipment_category ?? '—' }}
▣
Package Type{{ $shipment->package_type ?: ($quote->package_type ?? '—') }}
⚖
Weight{{ $shipment->weight_kg !== null ? number_format((float)$shipment->weight_kg,2).' kg' : ($quote?->weight_kg !== null ? number_format((float)$quote->weight_kg,2).' kg' : '—') }}
⇲
Dimensions (L × W × H){{ $quote && ($quote->length || $quote->width || $quote->height) ? number_format((float)$quote->length,2).' × '.number_format((float)$quote->width,2).' × '.number_format((float)$quote->height,2).' '.strtoupper($quote->dimension_unit ?: 'cm') : '—' }}
⚙
Shipment Handling{{ $quote->shipment_handling ?? '—' }}
₹
Declared Value{{ $shipment->declared_value !== null ? number_format((float)$shipment->declared_value,2) : '—' }}
✓
Insurance{{ $shipment->insurance ? 'Insured' : 'Not selected' }}
▤
Special Instructions / Customer Notes{{ $quote?->message ?: ($shipment->special_instructions ?: '—') }}
@if($quote)
↗
Original Quote RequestQuote #{{ $quote->id }} · submitted {{ $quote->created_at?->format('d M Y, h:i A') ?? '—' }} · {{ ucfirst($quote->status ?? 'pending') }}
@endif
@if($shipment->documents && $shipment->documents->count())

▤ Shipment Documents

@foreach($shipment->documents as $document)

{{ $document->name ?? $document->file_name ?? 'Document' }}

@endforeach
@endif
@endsection