@extends('admin.layouts.app') @section('page-title', 'Shipment Preview') @section('content')
Shipment Preview: {{ $shipment->shipment_id }}
{{ $dummyData['title'] }}
Generated On: {{ $dummyData['generated_on'] }}
Note: {{ $dummyData['note'] }}
Shipment Details
Shipment ID {{ $shipment->shipment_id }}
Origin {{ $shipment->origin }}
Destination {{ $shipment->destination }}
Status {{ ucfirst($shipment->status) }}
Date {{ \Carbon\Carbon::parse($shipment->shipment_date)->format('d M Y') }}
Orders Contained in Shipment
@if($shipment->orders->isEmpty())

No orders found.

@else
@foreach($shipment->orders as $order) @endforeach
Order ID Origin Destination CTN QTY TTL/QTY KG Amount
{{ $order->order_id }} {{ $order->origin }} {{ $order->destination }} {{ $order->ctn }} {{ $order->qty }} {{ $order->ttl_qty }} {{ $order->ttl_kg }} ₹{{ number_format($order->ttl_amount, 2) }}
@endif
Shipment Totals
Total CTN {{ $shipment->total_ctn }}
Total Quantity {{ $shipment->total_qty }}
Total TTL Quantity {{ $shipment->total_ttl_qty }}
Total CBM {{ $shipment->total_cbm }}
Total KG {{ $shipment->total_kg }}
Total Amount ₹{{ number_format($shipment->total_amount, 2) }}
← Back to Shipments
@endsection