| Phone | Type | Orders | Total Spent | Status | Actions | |||
|---|---|---|---|---|---|---|---|---|
|
@if($cust->customer_type === 'business' && $cust->business_name)
{{ $cust->business_name }}
{{ $cust->first_name }} {{ $cust->last_name }}
@else
{{ $cust->first_name }} {{ $cust->last_name }}
@endif
|
{{ $cust->email }} | {{ $cust->phone ?? 'N/A' }} | @if($cust->customer_type === 'business') Business @else Individual @endif | {{ $cust->orders_count }} | ${{ number_format($cust->total_spent ?? 0, 2) }} | {{ $cust->registration_date?->format('M d, Y') ?? $cust->created_at?->format('M d, Y') ?? 'N/A' }} | ||
| No customers found. | ||||||||