@extends('layouts.app') @section('title', $shipment->reference) @section('heading', $shipment->reference) @section('content') @php $s = $shipment; $statuses = \App\Enums\ShipmentStatus::cases(); @endphp
{{ $s->status->label() }} {{ $s->supplier?->name ?? 'No supplier' }} @if ($s->is_overdue)ETA passed {{ abs($s->days_to_eta) }} days ago@endif @if ($s->demurrage_risk)Free storage ends {{ $s->port_free_until->format('d M Y') }}@endif
| Stock ID | Vehicle | Status | @can('vehicles.view_cost')Landed cost | @endcan
|---|---|---|---|
| {{ $v->stock_id }} | {{ $v->display_name }}{{ $v->vin }} | @include('partials.kes', ['amount' => $v->landed_cost]) | @endcan|
| No vehicles yet. Choose this shipment on a vehicle's form to add it. | |||
Total: KSh {{ number_format((float) $s->totalChargesKes(), 2) }}
| Date | Type | Description | Original | KES | Split | Allocated | Actions |
|---|---|---|---|---|---|---|---|
| {{ $c->incurred_on->format('d M Y') }} | {{ $c->charge_type->label() }} | {{ $c->description }} | {{ $c->currency_code }} {{ number_format($c->amount, 2) }} | {{ number_format($c->amount_kes, 2) }} | {{ $c->allocation_method === 'value' ? 'By value' : 'Equally' }} | {{ $c->allocated_at ? $c->allocated_at->format('d M, H:i') : 'Not yet' }} | |
| No charges recorded. | |||||||