@extends('admin.layouts.app') @section('page-title', 'Shipment Details') @section('content')
Shipment Details
@if($mode === 'edit' && $shipment->status === 'pending') Add Order @endif
Shipment ID
{{ $shipment->shipment_id }}
Status
{{ str_replace('_', ' ', $shipment->status) }}
Shipment Date
{{ \Carbon\Carbon::parse($shipment->shipment_date)->format('d M Y') }}
Total Orders
{{ $orders->count() }}
Shipment Summary
TOTAL CTN
{{ $shipment->total_ctn }}
TOTAL QTY
{{ $shipment->total_qty }}
TOTAL CBM
{{ $shipment->total_cbm }}
TOTAL KG
{{ $shipment->total_kg }}
TOTAL TTL QTY
{{ $shipment->total_ttl_qty }}
TOTAL TTL CBM
{{ $shipment->total_ttl_cbm }}
TOTAL TTL KG
{{ $shipment->total_ttl_kg }}
TOTAL AMOUNT
₹{{ number_format($shipment->total_amount, 2) }}
Orders in This Shipment
@if($mode === 'edit' && $shipment->status === 'pending') @endif @foreach($orders as $order) @if($mode === 'edit' && $shipment->status === 'pending') @endif @endforeach
Order ID Origin Destination CTN QTY TTL/QTY CBM TTL CBM KG TTL KG Amount (₹) Delete
{{ $order->order_id }} {{ $order->origin }} {{ $order->destination }} {{ $order->ctn }} {{ $order->qty }} {{ $order->ttl_qty }} {{ $order->cbm }} {{ $order->ttl_cbm }} {{ $order->kg }} {{ $order->ttl_kg }} ₹{{ number_format($order->ttl_amount, 2) }}
@csrf
@if($mode === 'edit' && $shipment->status === 'pending')
@elseif($shipment->status === 'pending')
@endif
@endsection