@php // Convert profile object to array if needed for consistent access if (isset($profile) && is_object($profile)) { $profileArray = $profile->toArray(); // Handle date fields if (isset($profile->date_of_birth) && $profile->date_of_birth) { $profileArray['date_of_birth'] = $profile->date_of_birth->format('Y-m-d'); } // Handle country relationships if (isset($profile->nationality_country_id)) { $profileArray['nationality'] = $profile->nationality_country_id; } if (isset($profile->requirement_country_id)) { $profileArray['requirement_country'] = $profile->requirement_country_id; } // Map profession to nature_of_job for form compatibility if (isset($profile->profession)) { $profileArray['nature_of_job'] = $profile->profession; } // Handle photo URL - accessors are not included in toArray(), so access directly if (isset($profile->photo_path) && $profile->photo_path) { $photoUrl = $profile->photo_url ?? asset('storage/' . $profile->photo_path); $profileArray['photo'] = $photoUrl; $profileArray['photo_url'] = $photoUrl; } $profile = $profileArray; } else { $profile = $profile ?? []; // Map profession to nature_of_job if profile is already an array if (isset($profile['profession']) && !isset($profile['nature_of_job'])) { $profile['nature_of_job'] = $profile['profession']; } } $wizardId = 'clientProfileWizard'; $photoPreviewId = 'photoPreviewImage'; $currentPhoto = $profile['photo_url'] ?? $profile['photo'] ?? null; @endphp

@php $isEdit = isset($profile) && ((is_object($profile) && property_exists($profile, 'id') && $profile->id) || (is_array($profile) && !empty($profile['id']))); @endphp @if($isEdit) Edit Client Profile @else New Client Profile @endif

@if($isEdit) Update the matrimony profile details below. @else Create a detailed matrimony profile in a few clean, organized steps. @endif

Step 1 – Basic Information
@error('marital_status')

{{ $message }}

@enderror

Allowed: JPG, PNG, WEBP (max 2MB)

@error('photo')

{{ $message }}

@enderror
Selected profile preview @if (! $currentPhoto)

No image selected yet.

@endif
@error('gender')

{{ $message }}

@enderror
@error('date_of_birth')

{{ $message }}

@enderror
Step 2 – Personal Information
@error('religion')

{{ $message }}

@enderror
@error('sect')

{{ $message }}

@enderror
@error('caste')

{{ $message }}

@enderror
@error('ethnicity')

{{ $message }}

@enderror
@error('height')

{{ $message }}

@enderror
@error('nationality')

{{ $message }}

@enderror
@error('city')

{{ $message }}

@enderror
@error('house_size')

{{ $message }}

@enderror
@error('residence_type')

{{ $message }}

@enderror
@error('home_ownership')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror
Step 3 – Education & Employment
@error('qualification')

{{ $message }}

@enderror
@error('institute')

{{ $message }}

@enderror
@error('nature_of_job')

{{ $message }}

@enderror
@error('employment_status')

{{ $message }}

@enderror
@error('income')

{{ $message }}

@enderror
Step 4 – Family Details
@error('father_occupation')

{{ $message }}

@enderror
@error('mother_occupation')

{{ $message }}

@enderror
@error('siblings_count')

{{ $message }}

@enderror
@error('siblings_married_count')

{{ $message }}

@enderror
@error('family_background')

{{ $message }}

@enderror
Step 5 – Partner Requirements
@error('requirement_age_min')

{{ $message }}

@enderror
@error('requirement_age_max')

{{ $message }}

@enderror
@error('requirement_height')

{{ $message }}

@enderror
@error('requirement_country')

{{ $message }}

@enderror
@error('requirement_city')

{{ $message }}

@enderror
@error('requirement_sect')

{{ $message }}

@enderror
@error('requirement_marital_status')

{{ $message }}

@enderror
@error('requirement_notes')

{{ $message }}

@enderror