{{-- Avatar --}}
{{ mb_strtoupper(mb_substr($client->name_first, 0, 1)) }}{{ mb_strtoupper(mb_substr($client->name_last, 0, 1)) }}
{{ $client->name_first }}
@if($client->name_middle) {{ $client->name_middle }} @endif
{{ $client->name_last }}
@if($client->name_preferred)
Known as: {{ $client->name_preferred }}
@endif
@if($client->reference)
{{ $client->reference }}
@endif
{{-- Email --}}
{{-- Mobile --}}
{{-- Landline --}}
@if($client->landline)
@endif
{{-- DOB --}}
@if($client->date_of_birth)
{{ $client->date_of_birth->format('d/m/Y') }}
({{ $client->date_of_birth->age }})
@else
—
@endif
{{-- Address --}}
@php $currentAddress = $client->addresses()->where('is_current', true)->first() @endphp
@if($currentAddress)
@foreach(['line_1','line_2','line_3','line_4','line_5','line_6'] as $line)
@if($currentAddress->$line)
{{ $currentAddress->$line }}
@endif
@endforeach
@if($currentAddress->postcode)
{{ $currentAddress->postcode }}
@endif
@else
No address on record
@endif