@extends('customer.layout') @section('title','Dashboard') @section('content')

Dashboard

Overview of your recent activity

Updated just now
Total Orders

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

Pending Orders

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

Total Spent

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

Recent Orders
View All
@forelse($orders as $order) @php $statusColors = [ 'pending' => 'warning', 'processing' => 'info', 'delivered' => 'success', 'cancelled' => 'danger', ]; $color = $statusColors[$order->status] ?? 'secondary'; @endphp @empty @endforelse
Order Status Amount Action
#{{ $order->order_no }}
{{ $order->created_at?->format('d M Y') }}
{{ ucfirst($order->status) }} LKR {{ number_format($order->amount,2) }} Track
No orders found
@endsection