{{ $client->id_number }}
{{ $client->date_of_birth->format('M d, Y') }}
({{ $client->age }} years)
{{ ucfirst($client->gender) }}
{{ $client->occupation ?? 'Not specified' }}
{{ $client->monthly_income ? 'USD ' . number_format($client->monthly_income, 2) : 'Not specified' }}
@if($client->next_of_kin_name)
{{ $client->next_of_kin_name }}
{{ $client->next_of_kin_phone }}
{{ $client->next_of_kin_relationship }}
@endif
@if($client->notes)
@endif
@if($client->loans->count() > 0)
| LOAN ID |
AMOUNT |
TYPE |
STATUS |
CREATED |
ACTIONS |
@foreach($client->loans as $loan)
|
{{ $loan->loan_number }}
|
USD {{ number_format($loan->amount, 2) }} |
{{ ucfirst($loan->loan_type) }}
|
@if($loan->status == 'approved')
Approved
@elseif($loan->status == 'pending')
Pending
@else
{{ ucfirst($loan->status) }}
@endif
|
{{ $loan->created_at->format('M d, Y') }} |
|
@endforeach
@else
No loans found
This client doesn't have any loans yet.
Create New Loan
@endif
@if($client->savingsAccounts->count() > 0)
| ACCOUNT NO. |
PRODUCT |
TYPE |
BALANCE |
STATUS |
ACTIONS |
@foreach($client->savingsAccounts as $account)
|
{{ $account->account_number }}
|
{{ $account->product_name }} |
{{ ucfirst($account->type) }}
|
USD {{ number_format($account->current_balance, 2) }} |
@if($account->status == 'active')
Active
@else
{{ ucfirst($account->status) }}
@endif
|
|
@endforeach
@else
No savings accounts
This client doesn't have any savings accounts yet.
Create Savings Account
@endif