{{ $title }}

Overview of Package and Delivery Details

Create Shipment
Tracking Code:
{{ $shipment->tracking_code }}
Shipment Type:
{{ ucfirst($shipment->type) }}
Product:
{{ $shipment->product }}
Description:
{{ $shipment->description }}
Status:
{{ $shipment->status->label() }}
Current Location:
{{ $shipment->current_location }}
Last Update:
{{ formatDateTime($shipment->last_update) }}
Departure:
{{ $shipment->shipped_from }}
{{ formatDate($shipment->departure_date) }} {{ formatTime($shipment->departure_time) }}
Destination:
{{ $shipment->shipped_to }}
{{ formatDate($shipment->arrival_date) }} {{ formatTime($shipment->arrival_time) }}
Carrier:
{{ $shipment->carrier }} ({{ $shipment->carrier_reference_no }})
{{-- Sender Details --}}
Sender Details
Name:
{{ $shipment->sender_name }}
Address:
{{ $shipment->sender_address }}
Phone:
{{ $shipment->sender_phone }}
Email:
{{ $shipment->sender_email }}
{{-- Client Details --}}
Recipient Details
Name:
{{ $shipment->client_name }}
Address:
{{ $shipment->client_address }}
Phone:
{{ $shipment->client_phone }}
Email:
{{ $shipment->client_email }}
{{-- Package Details --}}
Package Details
Weight:
{{ $shipment->weight }} kg
Quantity:
{{ $shipment->quantity }}
Dimensions (L×W×H):
{{ $shipment->length }} × {{ $shipment->width }} × {{ $shipment->height }} cm
Comment:
{{ $shipment->comment ?? 'N/A' }}
{{-- Payment Details --}}
Payment Details
Amount:
{{ currency($shipment->currency) . formatAmount($shipment->amount) }} {{ currency($shipment->currency, 'code') }}
Payment Mode:
{{ ucfirst($shipment->payment_mode) }}
Total Freight:
{{ $shipment->total_freight }}
@if ($shipment->image)
Image:
@endif

Shipment Locations

@foreach ($shipment->shipmentLocation()->latest()->get() as $index => $shipmentLocation) @endforeach
# Location Google Map Location Description Date Time Status Action
{{ $index + 1 }} @if ( $shipment->current_location == $shipmentLocation->location && $shipment->status->value == $shipmentLocation->status->value) Current Location: {{ $shipmentLocation->location }} @else Previous Location: {{ $shipmentLocation->location }} @endif {{ $shipmentLocation->google_map_location }} {{ $shipment->description }} {{ formatDate($shipmentLocation->date) }} {{ formatTime($shipmentLocation->time) }} {{ $shipmentLocation->status->label() }} Delete

Update Shipment Locations

@csrf @method('PUT')
Update