@extends('admin.layouts.app') @section('page-title', 'Shipment Management') @section('content')
{{-- SUCCESS / ERROR MESSAGES --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Create Shipment
@csrf

Select Orders for Shipment
{{-- Orders Table --}}
@forelse($availableOrders as $order) @empty @endforelse
Select Order ID Mark No Origin Destination CTN QTY TTL Qty Amount KG
{{ $order->order_id }} {{ $order->mark_no }} {{ $order->origin }} {{ $order->destination }} {{ $order->ctn }} {{ $order->qty }} {{ $order->ttl_qty }} ₹{{ number_format($order->ttl_amount, 2) }} {{ $order->ttl_kg }}
No available orders
Shipments List
@forelse($shipments as $ship) @empty @endforelse
# Shipment ID Origin Destination Total QTY Total KG Total Amount Status Date Action
{{ $ship->id }} {{ $ship->shipment_id }} {{ $ship->origin }} {{ $ship->destination }} {{ $ship->total_qty }} {{ $ship->total_kg }} ₹{{ number_format($ship->total_amount, 2) }} {{ ucfirst($ship->status) }} {{ $ship->shipment_date }}
@csrf
No shipments found
@endsection