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

Customer Directory

View real customers who have placed orders with Dwaraka Collection.

{{ number_format($totalCustomersCount) }} Total Customers
@forelse($customers as $customer) @empty @endforelse
Customer Name Contact Info Total Orders Total Spent Last Order Date
{{ strtoupper(substr($customer->customer_name, 0, 1)) }}

{{ $customer->customer_name }}

Verified Buyer
{{ $customer->customer_phone }}
{{ $customer->customer_email ?? 'No email on record' }}
{{ $customer->total_orders }} orders ₹{{ number_format($customer->total_spent, 2) }} {{ $customer->last_order_date ? \Carbon\Carbon::parse($customer->last_order_date)->format('M d, Y') : 'N/A' }}

No customers recorded in database yet.

Showing {{ $customers->firstItem() ?? 0 }} to {{ $customers->lastItem() ?? 0 }} of {{ $customers->total() }} customer records

{{ $customers->links() }}
@endsection