@extends('layouts.app') @section('content')

Customers

Filter, sort, paginate and export
@can('create', App\Models\Customer::class) Add Customer @endcan
@foreach(['id'=>'ID','full_name'=>'Name','email'=>'Email','phone'=>'Phone','company'=>'Company','city'=>'City','state'=>'State','designation'=>'Designation','primary_tag'=>'Tag','source'=>'Source','created_at'=>'Created'] as $key=>$label) @endforeach @forelse($customers as $customer) @empty @endforelse
{{ $label }}Actions
{{ $customer->id }} {{ $customer->full_name }} {{ $customer->email }} {{ $customer->phone }} {{ $customer->company }} {{ $customer->city }} {{ $customer->state }} {{ $customer->designation }} {{ $customer->primary_tag }} {{ $customer->source }} {{ $customer->created_at?->format('Y-m-d') }} View @can('update', $customer)Edit@endcan @can('delete', $customer)
@csrf @method('DELETE')
@endcan
No customers found
{{ $customers->links() }}
@endsection