@extends('layouts.app') @section('title', 'Shipments') @section('heading', 'Import shipments') @section('content')
| Reference | Supplier / route | BL / container | ETA | Status | Vehicles |
|---|---|---|---|---|---|
| {{ $s->reference }} | {{ $s->supplier?->name ?? 'No supplier' }}{{ $s->origin_port ?: ($s->origin_country ? config('inventory.countries')[$s->origin_country] ?? $s->origin_country : 'Origin not set') }} → {{ $s->destination_port }} | {{ $s->bill_of_lading_no ?: 'No BL yet' }}{{ $s->container_no ?: ($s->shipping_method === 'roro' ? 'RoRo' : 'No container no.') }} | {{ $s->eta?->format('d M Y') ?? 'Not set' }} @if ($s->is_overdue){{ abs($s->days_to_eta) }} days late @elseif ($s->days_to_eta !== null && $s->days_to_eta <= 7)in {{ $s->days_to_eta }} {{ Str::plural('day', $s->days_to_eta) }}@endif @if ($s->demurrage_risk)Free storage ends {{ $s->port_free_until->format('d M') }}@endif | {{ $s->status->label() }} | {{ $s->vehicles_count }} |
| No shipments found. | |||||