{{$title}} ({{ count($contacts) }})

@csrf @method('get') Submit
@if(isset($prev_page) && $prev_page !== false) prev @endif @if(isset($next_page) && $next_page !== false) next @endif
@foreach($contacts as $contact)
{{ $contact->getPrimaryKeyValue() }}: {{ $contact->companyName ?? '' }} {{ $contact->customer ?? false ? "Customer #{$contact->customer}" : '' }} {{ $contact->firstName ?? '' }} {{ $contact->lastName ?? '' }} {{ $contact->address1 ?? ''}} {{ $contact->address2 ?? '' }} {{ $contact->city ?? '' }} {{ $contact->state ?? '' }} {{ $contact->zip ?? '' }} {{ $contact->shipTo && $contact->billTo ? 'Ship and Bill' : ($contact->shipTo ? 'Ship' : ($contact->billTo ? 'Bill' : '')) }}
@endforeach