@extends('admin.layouts.app') @section('title', 'Customer Details') @section('page-title', 'Customer: ' . $customer->name) @section('content')

{{ $customer->name }}

Member since {{ $customer->created_at->format('F Y') }}

@csrf @method('PUT')

Contact Information

Email: {{ $customer->email }}

Phone: {{ $customer->phone ?? 'N/A' }}

Address: {{ $customer->address ?? 'N/A' }}

Account Statistics

Total Orders: {{ $customer->orders->count() }}

Total Spent: {{ $currency_symbol }}{{ number_format($customer->orders->sum('total'), 2) }}

Account Status: {{ $customer->deleted_at ? 'Disabled' : 'Active' }}

Order History

@forelse($orders as $order) @empty @endforelse
Order # Date Total Status Actions
{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }} {{ $currency_symbol }}{{ number_format($order->total, 2) }} {{ ucfirst($order->status) }}
No orders found
{{ $orders->links() }}
@endsection