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

Customer Lists

You have total {{ $customers->total() }} customers

Import Customers Add Customer

Customers

@forelse($customers as $index => $customer) @empty @endforelse
# Name Phone Total Spent Last Login Status Options
{{ $customers->firstItem() + $index }}
@if($customer->avatar_url) {{ $customer->name }} @else {{ strtoupper(substr($customer->name, 0, 2)) }} @endif

{{ $customer->name }}

{{ maskEmail($customer->email) }}

{{ $customer->phone ?? '—' }} {{ price($customer->orders()->where('status', 'completed')->sum('total')) }} @if(property_exists($customer, 'last_login_at') && $customer->last_login_at) {{ $customer->last_login_at->format('M d, Y h:i A') }} @else Never @endif

No customers found

Get started by importing or adding a new customer.

@if($customers->hasPages())
{{ $customers->links() }}
@endif
@endsection