@extends('layouts.admin') @section('title', $customer->display_name) @section('content')

{{ $customer->display_name }}

{{ $customer->customer_no }} · {{ ucfirst($customer->type) }}

Edit Back
{{ $customer->phone }}
{{ $customer->email ?? '—' }}
{{ $customer->branch->name ?? '—' }}
{{ $customer->relationshipOfficer->name ?? '—' }}
{{ $customer->bvn ?? '—' }}
{{ ucfirst($customer->risk_rating ?? '—') }}
{{ $customer->monthly_income ? money($customer->monthly_income) : '—' }}
{{ $customer->portal_enabled ? 'Enabled' : 'Disabled' }}
@if($customer->address)

{{ $customer->address }}{{ $customer->city ? ', '.$customer->city : '' }}{{ $customer->state ? ', '.$customer->state : '' }}

@endif

Accounts ({{ $customer->accounts->count() }})

@forelse($customer->accounts as $account) @empty @endforelse
Account No.TypeBalanceStatus
{{ $account->account_no }} {{ ucfirst(str_replace('_',' ',$account->account_type)) }} {{ money($account->balance) }}
No accounts.

Loans ({{ $customer->loans->count() }})

@forelse($customer->loans as $loan) @empty @endforelse
Loan No.ProductOutstandingStatus
{{ $loan->loan_no }} {{ $loan->loanProduct->name ?? '—' }} {{ money($loan->outstanding_principal) }}
No loans.
@if($customer->investments->isNotEmpty())

Investments

@foreach($customer->investments as $inv) @endforeach
Investment No.PrincipalMaturityStatus
{{ $inv->investment_no }} {{ money($inv->principal) }} {{ $inv->maturity_date?->format('d M Y') ?? '—' }}
@endif @if($customer->notes)
Notes: {{ $customer->notes }}
@endif @endsection