@forelse ($contacts as $contact) @empty @endforelse
ID @if($sortBy === 'id') @if($sortDirection === 'asc') @else @endif @else @endif NAME @if($sortBy === 'fname') @if($sortDirection === 'asc') @else @endif @else @endif EMAIL @if($sortBy === 'email') @if($sortDirection === 'asc') @else @endif @else @endif BUSINESS PHONE @if($sortBy === 'bphone') @if($sortDirection === 'asc') @else @endif @else @endif PHONE @if($sortBy === 'phone') @if($sortDirection === 'asc') @else @endif @else @endif CONTACT TYPE @if($sortBy === 'contact_type') @if($sortDirection === 'asc') @else @endif @else @endif CREATED AT @if($sortBy === 'created_at') @if($sortDirection === 'asc') @else @endif @else @endif
{{ $contact->id}} {{ strlen($contact->fname . ' ' . $contact->lname) > 20 ? substr($contact->fname . ' ' . $contact->lname, 0, 20) . '...' : $contact->fname . ' ' . $contact->lname }} {{ $contact->email }} {{ $contact->bphone }} {{ $contact->phone }} {{ $contact->contact_type }} {{ $contact->created_at->format('Y-m-d') }}
No Contact found.
@if($contacts->lastPage() > 1) {{ $contacts->links() }} @endif @if($contacts->total() < 10)

Showing {{ $contacts->firstItem() }} to {{ $contacts->lastItem() }} of {{ $contacts->total() }} contacts

@else

@endif
Loading...