{{-- DAN7-06 — Authoritative lending profile capture (biodata_meta keys). @param \App\Models\LoanClient|null $client --}} @php $meta = (array) ($client?->biodata_meta ?? []); $val = static function (string $key) use ($meta): string { return (string) old('biodata_meta.'.$key, data_get($meta, $key, '')); }; $derivedAge = null; $dobForAge = $val('date_of_birth'); if ($dobForAge !== '') { try { $derivedAge = \Carbon\Carbon::parse($dobForAge)->age; } catch (\Throwable) { $derivedAge = null; } } $canCreateReference = (bool) (auth()->user()?->hasLoanPermission('system.help.create')); @endphp

Lending profile

@if ($derivedAge !== null)

Age (derived): {{ $derivedAge }} years

@endif
{{-- LAF particulars — printed on the Loan Application Form --}}

Loan application particulars

Used on the official Loan Application Form (identity, residence, business, referees).

Business location & trading

Must be between 1900 and {{ date('Y') }}.

Referees (two recommended)

@foreach ([1, 2] as $ri)
@endforeach