@if(session('success')) @endif @if(session('error')) @endif
@if(request('search')) Clear @endif
@if(auth()->check() && auth()->user()->hasRole('Admin')) @if(request('trashed') === 'only') View Active @else View Deleted @endif @endif @can('customers.delete') @endcan @can('customers.add') + Add New Customer @endcan
@if(request('trashed') === 'only')
Showing Soft Deleted Customers.
@endif
@csrf
@can('customers.delete') @endcan @forelse($customers as $customer) @can('customers.delete') @endcan @empty @endforelse
# Company Name Created Date Actions
{{ $loop->iteration + ($customers->currentPage() - 1) * $customers->perPage() }} {{ $customer->company_name }} {{ $customer->created_at ? $customer->created_at->format('d-m-Y') : '-' }}
@can('customers.edit') Edit @endcan @can('customers.delete') @csrf @method('DELETE') @endcan
No customers found.
Showing {{ $customers->firstItem() ?? 0 }} to {{ $customers->lastItem() ?? 0 }} of {{ $customers->total() }} entries
{{ $customers->links('pagination::bootstrap-5') }}
@push('scripts') @endpush