@extends('layouts.app') @section('title', 'Manage Customers') @section('content')

Customers

Manage all customers registered in the system.
@forelse($customers as $customer) @empty @endforelse
S.No Name Email Phone Status Actions
@if(method_exists($customers, 'firstItem')) {{ $customers->firstItem() + $loop->index }} @else {{ $loop->iteration }} @endif
{{ strtoupper(substr($customer->name,0,1)) }}
{{ $customer->name }}
Joined {{ optional($customer->created_at)->format('M d, Y') }}
{{ $customer->email }} {{ $customer->phone ?? '-' }} @if(strtolower($customer->role) == 'admin') Admin @else Active @endif
No customers found
Try adjusting filters or add a new customer.
Showing {{ $customers->count() }} of {{ method_exists($customers, 'total') ? $customers->total() : $customers->count() }} entries
@if(method_exists($customers, 'links')) {{ $customers->withQueryString()->links('pagination::bootstrap-5') }} @endif
@endsection