@extends('admin.layout') @section('title', 'Customers Management') @section('heading', 'Registered Customers') @section('content')
Show entries
@if(request('per_page')) @endif
@forelse($customers as $customer) @empty @endforelse
S.No Customer Name Email Address Phone Number Registered Date Account Status Actions
{{ ($customers->currentPage() - 1) * $customers->perPage() + $loop->iteration }}
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }} ID: #CUST-{{ 1000 + $customer->id }}
{{ $customer->email }} {{ $customer->phone ?: 'N/A' }} {{ $customer->created_at ? $customer->created_at->format('d M Y, h:i A') : 'N/A' }} @if($customer->is_active ?? true) ● Active @else ○ Blocked @endif
@csrf @method('DELETE')
No registered customers found.
Showing {{ $customers->firstItem() ?? 0 }} to {{ $customers->lastItem() ?? 0 }} of {{ $customers->total() }} entries
{{ $customers->appends(request()->query())->links('admin.partials.pagination') }}
@endsection