@extends('admin.layouts.app') @section('page-title', 'Shipment Preview') @section('content')

Shipment Details - {{ $shipment->shipment_id }}

{{-- SHOW BUTTON ONLY FOR PENDING --}} @if($shipment->status === 'pending') @endif
Shipment Information
Shipment ID {{ $shipment->shipment_id }}
Origin {{ $shipment->origin }}
Destination {{ $shipment->destination }}
Status @php $statusColors = [ 'pending' => 'warning', 'loading' => 'info', 'in_transit' => 'primary', 'dispatched' => 'success', 'delivered' => 'success', ]; $statusColor = $statusColors[$shipment->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $shipment->status)) }}
Date {{ \Carbon\Carbon::parse($shipment->shipment_date)->format('d M Y') }}
Orders Contained in Shipment
@if($shipment->orders->isEmpty())
No orders found in this shipment.
@else
Order ID Origin Destination Mark No Description CTN QTY TTL/QTY KG TTL/KG Amount Remove
Showing 1 to 0 of 0 entries
@endif
Shipment Totals
Total CTN {{ $shipment->total_ctn }}
Total QTY {{ $shipment->total_qty }}
Total TTL QTY {{ $shipment->total_ttl_qty }}
Total CBM {{ $shipment->total_cbm }}
Total KG {{ $shipment->total_kg }}
Total TTL KG {{ $shipment->total_ttl_kg }}
Total Amount: ₹{{ number_format($shipment->total_amount, 2) }}
@endsection