@php $Authuser = Auth::user(); $canContactEdit = $Authuser && ( ($module_type === 'admin' && $Authuser->hasPermission('admin.users.contacts.edit')) || ($module_type === 'vendor' && $Authuser->hasPermission('vendor.users.contacts.edit')) || ($module_type === 'customer' && $Authuser->hasPermission('customer.users.contacts.edit')) ); // Check delete permission $canContactDelete = $Authuser && ( ($module_type === 'admin' && $Authuser->hasPermission('admin.users.contacts.delete')) || ($module_type === 'vendor' && $Authuser->hasPermission('vendor.users.contacts.delete')) || ($module_type === 'customer' && $Authuser->hasPermission('customer.users.contacts.delete')) ); @endphp @forelse($contacts as $index => $c) @empty @endforelse
# First Name Last Name Phone Email Actions
{{ $contacts->firstItem() + $index }} {{ $c->first_name }} {{ $c->last_name }} {{ $c->phone }} {{ $c->email }} @if ($canContactEdit) @endif @if ($canContactDelete) @endif
No contacts found.
Showing {{ $contacts->firstItem() }} to {{ $contacts->lastItem() }} of {{ $contacts->total() }} entries
{!! $contacts->appends(request()->query())->links('pagination::bootstrap-5') !!}