Customer Details

Edit Customer
@csrf @method('DELETE') Delete Customer

Customer Information

Name
{{ $customer->name }}
Phone
{{ $customer->phone ?? 'N/A' }}
Email
{{ $customer->email ?? 'N/A' }}
Address
{{ $customer->address ?? 'N/A' }}
Status
{{ $customer->is_active ? 'Active' : 'Inactive' }}

Order Statistics

Total Orders
{{ $customer->orders->count() }}
Total Spent
{{ config('custom.currency_symbol') }}{{ number_format($customer->orders->sum('total_amount'), 2) }}
Last Order
@if($customer->orders->isNotEmpty()) {{ $customer->orders->sortByDesc('created_at')->first()->created_at->format('M d, Y') }} @else No orders yet @endif

Order History

@forelse($customer->orders as $order) @empty @endforelse
Invoice No Date Status Payment Status Total Actions
{{ $order->invoice_no ?? 'N/A' }}
#{{ $order->id }}
{{ $order->created_at->format('M d, Y') }} {{ ucfirst($order->status) }} {{ ucfirst($order->payment_status) }} {{ config('custom.currency_symbol') }}{{ number_format($order->total_amount, 2) }} View
No orders found