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

Consignment Management

All paid shipments awaiting dispatch

+ Create Consignment
Note: Updating consignment status automatically updates all linked shipments.
@foreach($consignments as $consignment)
@if($consignment->barcode_image && Storage::disk('public')->exists($consignment->barcode_image)) QR Code @else
No Barcode
@endif
{{ $consignment->code }} {{ $consignment->departure_location }} → {{ optional($consignment->destinationAddress)->name ?? $consignment->destination }} @if(optional($consignment->destinationAddress)->address) {{ $consignment->destinationAddress->address }} @endif {{ $consignment->created_at->format('d M Y') }}
{{ ucfirst(str_replace('_',' ',$consignment->status)) }}
@forelse($consignment->shipments as $shipment)
{{ $shipment->tracking_number }} View
@empty No parcels yet @endforelse
Print Barcode
@csrf
@endforeach
{{ $consignments->links() }}
@endsection