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

Export Dashboard

Overview of export operations

@php $kpiCards = [ ['title' => 'Total Orders', 'value' => number_format($kpi['total_orders'] ?? 0), 'change' => '+12%', 'changeType' => 'up', 'icon' => 'bi-cart3', 'color' => 'primary'], ['title' => 'Pending Shipments', 'value' => number_format($kpi['pending_shipments'] ?? 0), 'change' => '-5%', 'changeType' => 'down', 'icon' => 'bi-hourglass-split', 'color' => 'warning'], ['title' => 'In Transit', 'value' => number_format($kpi['in_transit'] ?? 0), 'change' => '+8%', 'changeType' => 'up', 'icon' => 'bi-truck', 'color' => 'info'], ['title' => 'Delivered', 'value' => number_format($kpi['delivered'] ?? 0), 'change' => '+15%', 'changeType' => 'up', 'icon' => 'bi-check-circle-fill', 'color' => 'success'], ]; @endphp @foreach($kpiCards as $kpi)

{{ $kpi['title'] }}

{{ $kpi['value'] }}

{{ $kpi['change'] }} vs last period
@endforeach

Total Export Value

${{ number_format($kpi['total_value'] ?? 0, 2) }}

{{ $kpi['currency'] ?? 'USD' }}

Active Bookings

{{ $kpi['active_bookings'] ?? 0 }}

Containers booked

Pending Documents

{{ $kpi['pending_docs'] ?? 0 }}

Awaiting dispatch

Revenue This Month

${{ number_format($kpi['monthly_revenue'] ?? 0, 2) }}

+{{ $kpi['revenue_change'] ?? 0 }}% vs last month
Monthly Export Volume
Top Destinations
Recent Orders
View All
@forelse($recentOrders ?? [] as $order) @empty @endforelse
Order #CustomerCommodityETDAmountStatus
{{ $order->order_number }} {{ $order->customer->name ?? 'N/A' }} {{ $order->commodity->name ?? 'N/A' }} {{ optional($order->etd)->format('d M Y') ?? 'TBD' }} {{ number_format($order->total_amount, 2) }} @php $sc = ['draft'=>'secondary','confirmed'=>'info','shipped'=>'primary','delivered'=>'success','on_hold'=>'danger']; @endphp {{ str_replace('_', ' ', ucfirst($order->status)) }}
No recent orders
Alerts & Notifications
@forelse($alerts ?? [] as $alert)

{{ $alert['title'] ?? 'Alert' }}

{{ $alert['message'] ?? '' }}

{{ $alert['time'] ?? '' }}
@empty

No alerts

@endforelse
@endsection @push('scripts') @endpush