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

Welcome back, {{ $customer->name }}!

Here's an overview of your account activity

{{ $stats['total_orders'] }}

Total Orders

{{ $stats['total_bookings'] }}

Total Bookings

{{ $stats['active_subscriptions'] }}

Active Subscriptions

RM {{ number_format($stats['total_spent'], 2) }}

Total Spent

@if($recentOrders->count() > 0)

Recent Orders

View All Orders
@foreach($recentOrders as $order) @endforeach
Order # Date Items Total Status Actions
{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }} {{ $order->orderItems->count() }} item(s) RM {{ number_format($order->total_amount, 2) }} {{ ucfirst($order->status) }} View
@else

No Orders Yet

Start shopping to see your orders here

Browse Products
@endif @if($recentBookings->count() > 0)

Recent Bookings

View All Bookings
@foreach($recentBookings as $booking) @endforeach
Booking # Resource Date Time Total Status Actions
{{ $booking->booking_reference }} {{ $booking->resource->name ?? 'N/A' }} {{ \Carbon\Carbon::parse($booking->booking_date)->format('M d, Y') }} {{ \Carbon\Carbon::parse($booking->start_time)->format('g:i A') }} RM {{ number_format($booking->total_price, 2) }} {{ ucfirst($booking->status) }} View
@elseif($recentOrders->count() === 0)

No Bookings Yet

Book a service to see your bookings here

@endif @endsection