Customers

@if (!auth()->user()->hasRole('system_admin')) Add Customer @endif
@if (!auth()->user()->hasRole('system_admin')) @endif @foreach($customers as $customer) @if (!auth()->user()->hasRole('system_admin')) @endif @endforeach
Name Contact Status Total Orders Last OrderActions
{{ $customer->name }}
@if($customer->phone)
{{ $customer->phone }}
@endif @if($customer->email)
{{ $customer->email }}
@endif
{{ $customer->is_active ? 'Active' : 'Inactive' }} {{ $customer->orders->count() ?? 0 }} {{ $customer->orders()->latest()->first()?->created_at->format('M d, Y') ?? 'No orders' }} View Edit
@csrf @method('DELETE') Delete
{{ $customers->links() }}