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

Shipments Management

Manage customer shipments, pricing, and delivery progress

+ New Shipment
@forelse($shipments as $shipment) @php $customer = $shipment->customer; $isPremium = $customer?->customer_type === 'premium'; @endphp @empty @endforelse
Tracking Customer Wt Original Disc Final Status Pay Actions
{{ $shipment->tracking_number }} {{ $customer?->name ?? 'N/A' }} @if($isPremium) P @endif {{ number_format($shipment->weight,2) }}kg £{{ number_format($shipment->original_price,2) }} @if($shipment->discount_amount > 0) -£{{ number_format($shipment->discount_amount,2) }} @else @endif £{{ number_format($shipment->final_price,2) }} @include('components.shipment-status-badge', ['status'=>$shipment->status]) @if($shipment->invoice && strtolower($shipment->invoice->status) === 'paid') Paid @else Unpaid @endif View @if(!$shipment->invoice || strtolower($shipment->invoice->status) !== 'paid') Edit @endif
No shipments found.
{{ $shipments->links() }}
@endsection