Total Customers
{{ number_format($customerAnalytics['total_customers'] ?? 0) }}
New Customers
{{ number_format($customerAnalytics['new_customers'] ?? 0) }}
Retention Rate
{{ number_format($customerAnalytics['customer_retention_rate'] ?? 0, 1) }}%
Avg Order Value
${{ number_format($customerAnalytics['avg_order_value'] ?? 0, 2) }}
{{ $customer->full_name }}
{{ $customer->service_orders_count }} orders
${{ number_format($customer->total_spent ?? 0, 2) }}
Total Spent
No customer data available
{{ isset($customerAnalytics['top_customers']) ? $customerAnalytics['top_customers']->where('service_orders_count', '>=', 5)->count() : 0 }}
5+ orders
{{ isset($customerAnalytics['top_customers']) ? $customerAnalytics['top_customers']->whereBetween('service_orders_count', [2, 4])->count() : 0 }}
2-4 orders
{{ $customerAnalytics['new_customers'] ?? 0 }}
This period
No customer analytics data available for the selected period