{{-- Welcome Banner --}}

Welcome back, {{ Auth::user()->name }}!

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

Continue Shopping
{{-- Stats Grid --}}
Total Orders
{{ $stats['total_orders'] }}
Pending Orders
{{ $stats['pending_orders'] }}
Delivered
{{ $stats['delivered_orders'] }}
Total Spent
KSh {{ number_format($stats['total_spent'], 0) }}
{{-- Main Content Grid --}}
{{-- Recent Orders --}}

Recent Orders

@if($recentOrders->count() > 0) View All → @endif
@if($recentOrders->count() > 0) @foreach($recentOrders as $order)

{{ $order->order_number }}

{{ $order->created_at->format('M d, Y') }} • {{ $order->items->count() }} item(s)
{{ ucfirst($order->status) }} KSh {{ number_format($order->total, 2) }}
@endforeach @else

No orders yet. Start shopping to see your orders here!

Start Shopping
@endif
{{-- Sidebar --}}
{{-- Cart Summary --}}

Your Cart

@if($cartItems->count() > 0) {{ $stats['cart_items'] }} @endif
@if($cartItems->count() > 0) @foreach($cartItems as $item)
@if($item->product->primaryImage) {{ $item->product->name }} @else @endif

{{ $item->product->name }}

Qty: {{ $item->quantity }}
KSh {{ number_format($item->subtotal, 0) }}
@endforeach
Subtotal KSh {{ number_format($cartTotal, 2) }}
View Cart & Checkout @else

Your cart is empty

Browse Products →
@endif
{{-- Quick Actions --}} {{-- Contact Information --}}

Contact Info

Edit
{{-- Email --}}
Email
{{ Auth::user()->email }}
{{-- Phone --}}
Phone
{{ Auth::user()->phone ?? 'Not provided' }}
{{-- Address --}}
Address
@if(Auth::user()->address || Auth::user()->city || Auth::user()->county) @if(Auth::user()->address){{ Auth::user()->address }}
@endif @if(Auth::user()->city || Auth::user()->county) {{ Auth::user()->city }}{{ Auth::user()->city && Auth::user()->county ? ', ' : '' }}{{ Auth::user()->county }} @endif @else Not provided @endif
@if(!Auth::user()->phone && !Auth::user()->address)

Complete your profile for faster checkout

@endif
{{-- Recommended Products --}} @if($recommendedProducts->count() > 0) @endif