@if($customers->count() > 0)
| # |
Name |
Email |
Phone |
Location |
@php
$num = ($customers->currentPage() - 1) * $customers->perPage() + 1;
@endphp
@foreach($customers as $customer)
| {{ $num }}. |
{{ $customer->name ?? '-' }} |
{{ $customer->email ?? '-' }} |
{{ $customer->phone ?? '-' }} |
{{ $customer->location ?? '-' }} |
@php $num++; @endphp
@endforeach
{{ $customers->links('pagination::bootstrap-4') }}
@else
No Customer found!
@endif