@extends('layouts.app') @section('title', $client->full_name) @section('content')

{{ $client->full_name }}

{{ $client->client_number }}

@if($client->status == 'active') Active @elseif($client->status == 'inactive') Inactive @elseif($client->status == 'suspended') Suspended @else Blacklisted @endif
KYC Status
@if($client->kyc_status == 'approved') Approved @elseif($client->kyc_status == 'rejected') Rejected @else Pending @endif
Manage KYC
Call @if($client->email) Email @endif KYC
Quick Stats
{{ $client->loans->count() }}
Total Loans
{{ $client->savingsAccounts->count() }}
Savings Accounts
Contact Info
Phone
{{ $client->phone }}
@if($client->email)
Email
{{ $client->email }}
@endif
Address
{{ $client->address }}, {{ $client->city }}
Personal Details
{{ $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)
Next of Kin
{{ $client->next_of_kin_name }}
{{ $client->next_of_kin_phone }}
{{ $client->next_of_kin_relationship }}
@endif
@if($client->notes)
Additional Notes
{{ $client->notes }}
@endif
@if($client->loans->count() > 0)
@foreach($client->loans as $loan) @endforeach
LOAN ID AMOUNT TYPE STATUS CREATED ACTIONS
{{ $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') }}
@else

No loans found

This client doesn't have any loans yet.

Create New Loan
@endif
@if($client->savingsAccounts->count() > 0)
@foreach($client->savingsAccounts as $account) @endforeach
ACCOUNT NO. PRODUCT TYPE BALANCE STATUS ACTIONS
{{ $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
@else

No savings accounts

This client doesn't have any savings accounts yet.

Create Savings Account
@endif
@endsection