Customers List

Generated on: {{ date('F d, Y h:i A') }}

@if(!empty($filters['search']) || !empty($filters['is_active']))

Filters: @if(!empty($filters['search'])) Search: {{ $filters['search'] }} @endif @if(!empty($filters['is_active'])) Status: {{ $filters['is_active'] == '1' ? 'Active' : 'Inactive' }} @endif

@endif
@forelse($customers as $customer) @php $balance = $customer->invoices ? $customer->invoices->sum('balance') : 0; $invoiceCount = $customer->invoices ? $customer->invoices->count() : 0; @endphp @empty @endforelse
Name Email Phone Company Address City State Status Invoices Balance
{{ $customer->name }} {{ $customer->email ?? 'N/A' }} {{ $customer->phone ?? 'N/A' }} {{ $customer->company ?? 'N/A' }} {{ $customer->address ?? 'N/A' }} {{ $customer->city ?? 'N/A' }} {{ $customer->state ?? 'N/A' }} {{ $customer->is_active ? 'Active' : 'Inactive' }} {{ $invoiceCount }} ${{ number_format($balance, 2) }}
No customers found