@extends('layouts.app') @section('title', 'Import Order ' . ($order->order_number ?? '')) @section('breadcrumb') @endsection @section('content')

{{ $order->order_number ?? 'IO-2026-0001' }}

Created {{ ($order->created_at ?? now())->format('d M Y, h:i A') }}

Edit
{{-- Overview Cards --}}

Supplier

{{ $order->supplier->name ?? 'M/s Global Trading Co.' }}

{{ $order->supplier->country ?? 'China' }}

Total Value

USD {{ number_format($order->total_value ?? 125000, 2) }}

{{ $order->currency ?? 'USD' }} | {{ $order->incoterms ?? 'FOB' }}

Shipment

{{ $order->items_count ?? 5 }} Items

{{ $order->container_qty ?? 2 }} x {{ $order->container_type ?? '40ft' }}

ETA

{{ ($order->expected_eta ?? now()->addDays(30))->format('d M Y') }}

ETD: {{ ($order->expected_etd ?? now())->format('d M Y') }}
{{-- Tabs --}}
{{-- Overview Tab --}}
Order Details
@foreach([ ['Order Number', $order->order_number ?? 'IO-2026-0001'], ['Order Date', ($order->order_date ?? now())->format('d M Y')], ['Supplier', $order->supplier->name ?? 'M/s Global Trading Co.'], ['Supplier Reference', $order->supplier_reference ?? 'PO-SUP-2026-089'], ['Origin Country', $order->origin_country ?? 'China'], ['Payment Terms', $order->payment_terms ?? 'LC at Sight'], ['Incoterms', $order->incoterms ?? 'FOB'], ['Currency', $order->currency ?? 'USD'], ['Port of Loading', $order->port_of_loading ?? 'Shanghai, China'], ['Port of Discharge', $order->port_of_discharge ?? 'JNPT (Nhava Sheva)'], ['Shipping Line', $order->shipping_line ?? 'Maersk Line'], ['Vessel', $order->vessel_name ?? 'Maersk Seletar V.2614E'], ['Expected ETD', ($order->expected_etd ?? now())->format('d M Y')], ['Expected ETA', ($order->expected_eta ?? now()->addDays(28))->format('d M Y')], ] as [$label, $value])

{{ $label }}

{{ $value }}

@endforeach
Progress
{{-- Items Tab --}}
@foreach($order->items ?? [ ['description' => 'Electronic Control Module PCB', 'hs_code' => '8534.00', 'unit' => 'PCS', 'qty' => 500, 'unit_price' => 85.00, 'net_weight' => 125, 'gross_weight' => 150], ['description' => 'Industrial Sensor Assembly', 'hs_code' => '9031.80', 'unit' => 'NOS', 'qty' => 200, 'unit_price' => 142.50, 'net_weight' => 80, 'gross_weight' => 95], ['description' => 'Aluminum Housing Castings', 'hs_code' => '7616.99', 'unit' => 'PCS', 'qty' => 1000, 'unit_price' => 12.80, 'net_weight' => 250, 'gross_weight' => 280], ['description' => 'Copper Wire Harness Set', 'hs_code' => '8544.42', 'unit' => 'SET', 'qty' => 500, 'unit_price' => 28.50, 'net_weight' => 62, 'gross_weight' => 75], ['description' => 'Silicone Seal Rings', 'hs_code' => '4016.93', 'unit' => 'NOS', 'qty' => 5000, 'unit_price' => 1.20, 'net_weight' => 15, 'gross_weight' => 20], ] as $i => $item) @endforeach
#DescriptionHS CodeUnitQtyUnit PriceAmountNet WtGross Wt
{{ $i + 1 }} {{ $item['description'] }} {{ $item['hs_code'] }} {{ $item['unit'] }} {{ number_format($item['qty']) }} USD {{ number_format($item['unit_price'], 2) }} USD {{ number_format($item['qty'] * $item['unit_price'], 2) }} {{ number_format($item['net_weight']) }} kg {{ number_format($item['gross_weight']) }} kg
Total: USD {{ number_format($order->total_value ?? 125000, 2) }} {{ number_format($order->total_net_weight ?? 532) }} kg {{ number_format($order->total_gross_weight ?? 620) }} kg
{{-- Shipments Tab --}}
Shipments
Add Shipment
@foreach($order->shipments ?? [ ['shipment_number' => 'SH-2026-0123', 'containers' => 'MSKU7234180', 'vessel' => 'Maersk Seletar', 'etd' => '15 Jan', 'eta' => '12 Feb', 'status' => 'in_transit'], ['shipment_number' => 'SH-2026-0124', 'containers' => 'TCLU8901234', 'vessel' => 'MSC Diana', 'etd' => '18 Jan', 'eta' => '15 Feb', 'status' => 'shipped'], ] as $sh) @endforeach
Shipment No.Container(s)VesselETDETAStatusActions
{{ $sh['shipment_number'] }} {{ $sh['containers'] }} {{ $sh['vessel'] }} {{ $sh['etd'] }} {{ $sh['eta'] }}
{{-- Bills of Entry Tab --}}
Bills of Entry
New BOE
@foreach($order->bills_of_entry ?? [ ['boe_number' => 'BOE-2026-0891', 'type' => 'Home Consumption', 'assessment' => 'ASS-2026-1234', 'duty' => '₹18,75,000', 'assessment_status' => 'assessed', 'status' => 'cleared'], ['boe_number' => 'BOE-2026-0892', 'type' => 'Home Consumption', 'assessment' => 'ASS-2026-1235', 'duty' => '₹12,45,000', 'assessment_status' => 'pending', 'status' => 'in_transit'], ] as $boe) @endforeach
BOE No.BOE TypeAssessment No.Duty AmountAssessment StatusStatusActions
{{ $boe['boe_number'] }} {{ $boe['type'] }} {{ $boe['assessment'] }} {{ $boe['duty'] }}
{{-- Financial Summary Tab --}}
Cost Summary
@php $costs = ['FOB Value' => 'USD 125,000.00', 'Freight' => 'USD 8,500.00', 'Insurance' => 'USD 625.00', 'CIF Value' => 'USD 134,125.00', 'Basic Customs Duty (10%)' => '₹11,30,625', 'IGST (18%)' => '₹2,42,288', 'Social Welfare Surcharge' => '₹56,531', 'Total Duty' => '₹14,29,444', 'Customs Handling Charges' => '₹25,000', 'Port Charges' => '₹18,500', 'Total Landed Cost' => '₹1,48,53,444']; @endphp @foreach($costs as $label => $val)
{{ $label }} {{ $val }}
@endforeach
Payment Status
@foreach([ ['Supplier Payment', 'Paid', 'success', 'USD 125,000', '05 Jan 2026'], ['Freight Payment', 'Paid', 'success', 'USD 8,500', '20 Jan 2026'], ['Insurance Premium', 'Paid', 'success', 'USD 625', '20 Jan 2026'], ['Customs Duty', 'Partial', 'warning', '₹10,00,000 / ₹14,29,444', '15 Feb 2026'], ['CHarges', 'Pending', 'danger', '₹43,500', '-'], ] as [$desc, $status, $color, $amt, $date])

{{ $desc }}

Paid on {{ $date }}

{{ $amt }}

@endforeach
{{-- Documents Tab --}}
Documents
@foreach(['Purchase Order - IO-2026-0001.pdf|PDF|245 KB|02 Jan','Commercial Invoice - INV-2026-089.pdf|PDF|128 KB|10 Jan','Packing List - PL-2026-089.pdf|PDF|98 KB|10 Jan','Bill of Lading - BOL-MSKU7234180.pdf|PDF|312 KB|18 Jan','Certificate of Origin - COO-2026-089.pdf|PDF|85 KB|15 Jan','Insurance Certificate - IC-2026-089.pdf|PDF|156 KB|18 Jan'] as $doc) @php [$name, $type, $size, $date] = explode('|', $doc); @endphp

{{ $name }}

{{ $type }} | {{ $size }} | Uploaded {{ $date }}
@endforeach
@endsection