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

Customers

{{ $customers->total() }} record(s) matching your filters

Export CSV + New customer
@include('components.kpi', ['label' => 'All customers', 'value' => number_format($counts['all']), 'href' => route('customers.index')]) @include('components.kpi', ['label' => 'Active', 'value' => number_format($counts['active']), 'variant' => 'good', 'href' => route('customers.index', ['status' => 'active'])]) @include('components.kpi', ['label' => 'Suspended', 'value' => number_format($counts['suspended']), 'variant' => 'warn', 'href' => route('customers.index', ['status' => 'suspended'])]) @include('components.kpi', ['label' => 'Leads / prospects', 'value' => number_format($counts['leads']), 'href' => route('leads.index')])
@forelse ($customers as $customer) @empty @endforelse
CustomerContactSegmentServices BalanceKYCStatusJoined
{{ $customer->display_name }}
{{ $customer->customer_number }}
{{ $customer->phone }} @if ($customer->email)
{{ $customer->email }}
@endif
{{ title_case_words($customer->segment) }} {{ $customer->active_services_count }} {{ $customer->account_balance > 0 ? money($customer->account_balance, $customer->currency) : '—' }} {{ $customer->kyc_status }} {{ $customer->status }} {{ $customer->joined_at?->format('d M Y') ?: '—' }} View Pay
@include('components.empty-state', ['icon' => '☺', 'title' => 'No customers found', 'message' => 'Adjust your filters or add your first customer.', 'action' => '+ New customer'])
@if ($customers->hasPages())
{{ $customers->links('partials.pagination') }}
@endif
@endsection