@extends('layouts.shop') @section('title', 'My Account - Hair Niche By Shelly') @section('content')
@include('user.partials.sidebar')

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

Here's what's happening with your account today. You can manage your orders, check your wishlist, and update your profile settings.

Total Orders

{{ $totalOrders }}

Lifetime purchases

Pending

{{ $pendingOrders }}

Processing orders

Wishlist

{{ $wishlistCount }}

Saved items

Wallet

{{ number_format(Auth::user()->wallet_balance ?? 0, 2) }}

Available points

Recent Orders

View All
@if(isset($recentOrders) && $recentOrders->count() > 0) @foreach($recentOrders as $order) @endforeach
Order Date Status Total Action
#{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }} @php $statusClasses = [ 'pending' => 'bg-amber-100 text-amber-800 border-amber-200', 'processing' => 'bg-blue-100 text-blue-800 border-blue-200', 'shipped' => 'bg-indigo-100 text-indigo-800 border-indigo-200', 'completed' => 'bg-emerald-100 text-emerald-800 border-emerald-200', 'cancelled' => 'bg-rose-100 text-rose-800 border-rose-200', ]; $currentClass = $statusClasses[$order->status] ?? 'bg-gray-100 text-gray-800 border-gray-200'; @endphp {{ ucfirst($order->status) }} ₹{{ number_format($order->total_amount, 2) }} Details
@else

No recent orders

You haven't placed any orders yet. Start your shopping journey today!

Start Shopping
@endif
@endsection