@php $firstName = trim((string) ($profile['first_name'] ?? '')); $middleName = trim((string) ($profile['middle_name'] ?? '')); $lastName = trim((string) ($profile['last_name'] ?? '')); $fullName = trim(implode(' ', array_filter([$firstName, $middleName, $lastName]))); $fullName = $fullName !== '' ? $fullName : 'Your profile'; $initials = collect([$firstName, $lastName])->filter()->map(fn ($part) => mb_strtoupper(mb_substr($part, 0, 1)))->join(''); $initials = $initials !== '' ? $initials : 'LP'; $userRows = [ ['label' => 'Username', 'value' => $profile['username'] ?? '-', 'icon' => 'user-circle', 'span' => 'md:col-span-1'], ['label' => 'Email', 'value' => $profile['email'] ?? '-', 'icon' => 'mail', 'span' => 'md:col-span-2'], ['label' => 'Cell', 'value' => $profile['cell'] ?? '-', 'icon' => 'phone', 'span' => 'md:col-span-1'], ['label' => 'Alternative Cell', 'value' => $profile['alt_cell'] ?? '-', 'icon' => 'phone-forwarded', 'span' => 'md:col-span-1'], ['label' => 'Alternative WhatsApp', 'value' => $profile['alt_whatsapp'] ?? '-', 'icon' => 'message-circle', 'span' => 'md:col-span-2'], ]; $contactRows = [ ['label' => 'First Name', 'value' => $profile['first_name'] ?? '-', 'icon' => 'badge', 'span' => 'md:col-span-1'], ['label' => 'Middle Name', 'value' => $profile['middle_name'] ?? '-', 'icon' => 'badge', 'span' => 'md:col-span-1'], ['label' => 'Last Name', 'value' => $profile['last_name'] ?? '-', 'icon' => 'badge', 'span' => 'md:col-span-1'], ['label' => 'ID Number', 'value' => $profile['id_number'] ?? '-', 'icon' => 'shield', 'span' => 'md:col-span-1'], ['label' => 'Passport Number', 'value' => $profile['passport_number'] ?? '-', 'icon' => 'globe', 'span' => 'md:col-span-1'], ]; $primaryContact = $profile['email'] ?: ($profile['cell'] ?: ($profile['alt_whatsapp'] ?: 'Not added')); $identityRecord = $profile['id_number'] ?: ($profile['passport_number'] ?: 'Not added'); $profileStats = [ ['label' => 'Account Access', 'value' => $profile['username'] ?: 'Not added', 'span' => ''], ['label' => 'Primary Contact', 'value' => $primaryContact, 'span' => ''], ['label' => 'Identity Record', 'value' => $identityRecord, 'span' => 'col-span-2'], ]; @endphp
Client Profile

{{ $fullName }}

A single place for your account access, contact details, and identity information used across the client portal.

{{ $initials }}
@foreach ($profileStats as $stat)
{{ $stat['label'] }} {{ $stat['value'] }}
@endforeach
@if (session()->has('status'))
{{ session('status') }}
@endif

Account Overview

Professional profile summary

Review your saved details below, copy any value when needed, or switch into edit mode to keep your record current.

@if (! $isEditing)

Client record

Profile details

Your account and contact details are grouped below in structured cards. Tap any card to copy its value.

User Info

Account access and reachable channels.

@foreach ($userRows as $row) @endforeach

Contact Info

Identity and personal record details.

@foreach ($contactRows as $row) @endforeach
@else

Edit profile

Update your information below and save when you are done.

Editing

User Info

Update account access and contact channels.

@error('profile.username')

{{ $message }}

@enderror
@error('profile.email')

{{ $message }}

@enderror
@error('profile.cell')

{{ $message }}

@enderror
@error('profile.alt_cell')

{{ $message }}

@enderror
@error('profile.alt_whatsapp')

{{ $message }}

@enderror

Contact Info

Update names and identity information.

@error('profile.first_name')

{{ $message }}

@enderror
@error('profile.middle_name')

{{ $message }}

@enderror
@error('profile.last_name')

{{ $message }}

@enderror
@error('profile.id_number')

{{ $message }}

@enderror
@error('profile.passport_number')

{{ $message }}

@enderror
@endif
@push('styles') @endpush @once @endonce