@extends(EcommerceHelper::viewPath('customers.master')) @section('title', __('Overview')) @section('content') @php $customer = auth('customer')->user(); EcommerceHelper::registerThemeAssets(); $totalOrders = $customer->orders()->count(); $totalAddresses = $customer->addresses()->count(); @endphp {{-- Hidden avatar upload (still wired to sidebar avatar via JS) --}} {{-- Stat cards --}}
{{ $totalOrders }}
{{ __('Total Orders') }}
{{ $totalAddresses }}
{{ __('Saved Addresses') }}
{{ $customer->created_at->format('M Y') }}
{{ __('Member Since') }}
{{-- Info card --}}

{!! BaseHelper::clean( __( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.', [ 'order' => route('customer.orders'), 'addresses' => route('customer.address'), 'edit_account' => route('customer.edit-account'), ], ), ) !!}

@if (! $totalOrders)
{{ __("You haven't placed any orders yet.") }}
{{ __('Browse Products') }}
@endif @endsection