Welcome back, {{ $buyer->contact_person }}!

Here's what's happening with your account today.

Total Orders
{{ number_format($stats['total_orders']) }}
Pending Orders
{{ number_format($stats['pending_orders']) }}
Completed Orders
{{ number_format($stats['completed_orders']) }}
Total Spent
₹{{ number_format($stats['total_spent'], 2) }}

Recent Orders

@if($recentOrders->count() > 0)
@foreach($recentOrders as $order)

{{ $order->order_number ?? 'Order #' . $order->id }}

{{ $order->supplier->business_name ?? 'N/A' }}

₹{{ number_format($order->total_amount, 2) }}

{{ ucfirst($order->status) }}
@endforeach
@else @endif

Featured Products

@if($featuredProducts->count() > 0)
@foreach($featuredProducts->take(4) as $product)

{{ $product->product_name }}

{{ $product->supplier->business_name }}

₹{{ number_format($product->price_per_unit, 2) }} {{ $product->unit }}
@endforeach
@else

No featured products available

@endif