@extends('layouts.app') @section('title', 'Export Orders') @push('styles') @endpush @section('breadcrumbs') @endsection @section('content')

Export Orders

Track and manage all export orders

New Order
@php $orderStats = [ ['label' => 'Total Orders', 'count' => $stats['total'] ?? 0, 'icon' => 'bi-cart', 'color' => 'primary'], ['label' => 'Confirmed', 'count' => $stats['confirmed'] ?? 0, 'icon' => 'bi-check2-circle', 'color' => 'info'], ['label' => 'In Shipment', 'count' => $stats['in_shipment'] ?? 0, 'icon' => 'bi-truck', 'color' => 'warning'], ['label' => 'Delivered', 'count' => $stats['delivered'] ?? 0, 'icon' => 'bi-check-circle-fill', 'color' => 'success'], ['label' => 'On Hold', 'count' => $stats['on_hold'] ?? 0, 'icon' => 'bi-pause-circle', 'color' => 'danger'], ]; @endphp @foreach($orderStats as $stat)

{{ $stat['count'] }}

{{ $stat['label'] }}
@endforeach
@forelse($orders as $order) @empty @endforelse
Order # Date Customer Commodity ETD Amount Status Actions
{{ $order->order_number }} {{ $order->created_at->format('d M Y') }} {{ $order->customer->name ?? 'N/A' }} {{ $order->commodity->name ?? 'N/A' }} {{ optional($order->etd)->format('d M Y') ?? 'TBD' }} {{ number_format($order->total_amount, 2) }} {{ $order->currency }} @php $statusMap = [ 'draft' => 'bg-secondary-subtle text-secondary', 'confirmed' => 'bg-info-subtle text-info', 'processing' => 'bg-primary-subtle text-primary', 'booked' => 'bg-warning-subtle text-warning', 'shipped' => 'bg-success-subtle text-success', 'in_transit' => 'bg-primary-subtle text-primary', 'delivered' => 'bg-success-subtle text-success', 'on_hold' => 'bg-danger-subtle text-danger', 'cancelled' => 'bg-secondary-subtle text-secondary', ]; @endphp {{ str_replace('_', ' ', ucfirst($order->status)) }}

No orders found

@endsection @push('scripts') @endpush