@extends('layouts.app') @section('title', 'User Dashboard') @section('content')

Dashboard

Welcome, {{ $user->name }}!

Total Orders

{{ $totalOrders }}

Total Spent

{{ \App\Support\Currency::symbol() }}{{ number_format($totalSpent, 2) }}

Pending Orders

{{ $pendingOrders }}

Member Since

{{ $user->created_at->format('M Y') }}

Recent Orders
@if($recentOrders->count() > 0)
@foreach($recentOrders as $order) @endforeach
Order # Date Total Status Action
{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }} {{ \App\Support\Currency::symbol() }}{{ number_format($order->total, 2) }} {{ ucfirst($order->status) }} View
@else

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

@endif
Account Info

Email: {{ $user->email }}

Phone: {{ $user->phone ?? 'Not provided' }}

City: {{ $user->city ?? 'Not provided' }}

Update Profile
@endsection