@php $walletBalanceDisplay = (float) ($walletBalance ?? 0); $walletStatusDisplay = (string) ($walletStatusLabel ?? $loan_client->wallet?->status ?? 'active'); @endphp
KSh {{ number_format($walletBalanceDisplay, 2) }}
KSh {{ number_format((float) ($walletTotals['credits'] ?? 0), 2) }}
KSh {{ number_format((float) ($walletTotals['debits'] ?? 0), 2) }}
{{ ucfirst($walletStatusDisplay) }}
| Date | Type | Description | Credit | Debit | Balance |
|---|---|---|---|---|---|
| {{ optional($tx->created_at)->format('Y-m-d H:i') }} | {{ $tx->transaction_type }} | {{ $tx->description ?? '—' }} | {{ $tx->transaction_type === 'credit' ? number_format((float) $tx->amount, 2) : '—' }} | {{ $tx->transaction_type === 'debit' ? number_format((float) $tx->amount, 2) : '—' }} | {{ number_format((float) $tx->running_balance, 2) }} |
| No wallet transactions yet. | |||||