{{ $client->name_first }} {{ $client->name_last }} @can('clients.edit') Edit Client @endcan
{{-- LEFT: CLIENT INFO CARD --}}
{{-- 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 --}}
@if($client->email_address) {{ $client->email_address }} @else @endif
{{-- Mobile --}}
@if($client->phone_number) {{ $client->phone_number }} @else @endif
{{-- 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
{{-- RIGHT: CLAIMS + TABBED EXTRAS --}}
{{-- Claims --}} @if(auth()->user()->canAccessWorkspace('ha')) @endif @if(auth()->user()->canAccessWorkspace('pension')) @endif @if(auth()->user()->canAccessWorkspace('wills')) @endif {{-- Notes / Documents / Address Book in tabs --}}