@extends('layouts.app') @section('title', 'Customers List') @section('page_title', 'Client Relationship Management (CRM)') @section('content')
TOTAL CLIENTS

{{ $clients->count() }}

ACTIVE CLIENTS

{{ $clients->where('status', 'active')->count() }}

TOTAL RECEIVABLES

{{ number_format($clients->sum('outstanding_balance')) }} UGX

Customer Registry
@forelse($clients as $c) @empty @endforelse
Code Name Phone Email Outstanding Balance Status Actions
{{ $c->client_code }}
{{ $c->full_name }} @if($c->business_name) {{ $c->business_name }} @endif
{{ $c->phone }} {{ $c->email ?? '-' }} {{ number_format($c->outstanding_balance) }} UGX {{ ucfirst($c->status) }} Ledger
No customers registered yet.
@endsection