@extends('layouts.admin') @section('title', 'Consignment Details') @section('content')

Consignment Details

Tracking Code: {{ $consignment->code }}

Back
@if($consignment->barcode_image) @endif

Scan to track consignment

{{ $consignment->code }}

{{ ucfirst(str_replace('_',' ',$consignment->status)) }}

Departure

{{ $consignment->departure_location }}

Destination

{{ optional($consignment->destinationAddress)->name ?? $consignment->destination }}

Total Shipments

{{ $consignment->shipments->count() }}

Created At

{{ $consignment->created_at->format('d M Y, h:i A') }}

Shipments in this Consignment ({{ $consignment->shipments->count() }})

@foreach($consignment->shipments as $shipment) @endforeach
Tracking Customer Weight Status Action
{{ $shipment->tracking_number ?? $shipment->id }} {{ $shipment->customer_name ?? 'N/A' }} {{ $shipment->weight ?? '0' }} kg {{ ucfirst(str_replace('_',' ',$shipment->status)) }} View
@endsection