@extends('layouts.app') @section('title', 'Dashboard') @section('breadcrumbs') @endsection @section('content')

{{ $stats['total_orders'] ?? 0 }}

Total Orders

{{ $stats['active_shipments'] ?? 0 }}

Active Shipments

{{ number_format($stats['pending_payments'] ?? 0, 2) }}

Pending Payments

{{ $stats['pending_approvals'] ?? 0 }}

Pending Approvals

Recent Orders
@forelse($recentOrders ?? [] as $order) @empty @endforelse
Order # Customer Type Status
{{ $order->order_number }} {{ $order->customer->name ?? 'N/A' }} {{ ucfirst($order->type) }} {{ ucfirst($order->status) }}
No recent orders
@endsection