{{ substr($client->name, 0, 1) }}
{{ $client->name }}

Client ID: #{{ $client->id }} | Member since {{ $client->created_at->format('M Y') }}

Edit Profile
@csrf @method('DELETE')

Total Matters

{{ $totalCases }}

Active

{{ $activeCases }}

Lifetime Billed

KES {{ number_format($totalBilled) }}

Due Amount

KES {{ number_format($totalUnpaid) }}

Billing History (6 Months)

Legal Matters

+ New Case
@if($client->cases->count() > 0)
@foreach($client->cases as $case) @endforeach
Case Details Status Action
{{ $case->title }} {{ $case->case_number }}
@if($case->status == 'open') Active @elseif($case->status == 'closed') Closed @else {{ ucfirst($case->status) }} @endif View File
@else

No legal matters opened for this client yet.

@endif

Contact Details

{{ $client->phone ?? 'Not Recorded' }}
{{ $client->kra_pin ?? 'Not Recorded' }}
{{ $client->address ?? 'No address on file.' }}

Account Status

This client account is active. They have portal access enabled via their email address.

@if($totalUnpaid > 0)

⚠️ Client has pending invoices totaling KES {{ number_format($totalUnpaid) }}.

@endif

Client Account Ledger

@if($client->payments && $client->payments->count() > 0) @foreach($client->payments->groupBy('chart_of_account_id') as $accId => $payments) @php $account = $payments->first()->account; @endphp @if($account) @endif @endforeach @else @endif
Account Type Total Received
{{ $account->name }} {{ ucfirst($account->type) }} KES {{ number_format($payments->sum('amount')) }}
No ledger transactions recorded yet.