@extends('layouts.admin') @section('title', 'Customers Directory') @section('content')

Registered Customer Directory

View registered customer profiles and total purchase metrics.

@if($customers->isEmpty())
No registered customers found.
@else
@foreach($customers as $c) @endforeach
Customer Contact Information Address Total Orders Lifetime Spend Registered Date Action
{{ $c->name }}
{{ $c->email }}
{{ $c->phone ?? 'No phone' }}
{{ $c->address ?? 'Not set' }}
{{ $c->city ? $c->city . ', ' . $c->state : '' }}
{{ $c->orders_count }} orders ₹{{ number_format($c->orders_sum_total_amount ?? 0, 2) }} {{ $c->created_at->format('M d, Y') }} View Profile
{{ $customers->links() }}
@endif
@endsection