@php($profileOptions = $profileOptions ?? config('profile_options')) @php( $optionMap = [ // أساسي 'marital_status' => 'marital_statuses', 'religiosity' => 'religiosity_levels', 'want_children' => 'want_children_options', 'family_values' => 'family_values_options', 'occupation_sector' => 'occupation_sectors', 'housing_type' => 'housing_types', 'income' => null, // حقل نصي/قيمة مباشرة // نمط الحياة 'lifestyle' => 'lifestyles', 'smoking' => 'smoking_habits', 'drinking' => 'drinking_habits', 'travel' => 'travel_options', 'music' => 'music_options', // الدين 'religion' => 'religions', 'pray_frequency' => 'pray_frequency_options', 'read_quran' => 'read_quran_options', 'halal_food' => 'halal_food_options', // المظهر 'skin_color' => 'skin_colors', 'eye_color' => 'eye_colors', 'hair_color' => 'hair_colors', 'beard' => 'beard_styles', 'body_type' => 'body_type_options', 'ethnicity' => 'ethnicities', // الصحة 'health_status' => 'health_status_options', ] ) @php($groups = [ 'أساسي' => [ 'marital_status'=>'الحالة الاجتماعية','religiosity'=>'التدين','want_children'=>'الرغبة بالأطفال','family_values'=>'قيم العائلة','occupation_sector'=>'قطاع العمل','housing_type'=>'السكن','income'=>'الدخل'], 'نمط الحياة' => [ 'lifestyle'=>'نمط الحياة','smoking'=>'التدخين','drinking'=>'الشرب','travel'=>'السفر','hobbies'=>'الهوايات','music'=>'الموسيقى' ], 'الدين' => [ 'religion'=>'الدين','pray_frequency'=>'الصلاة','read_quran'=>'قراءة القرآن','halal_food'=>'طعام حلال' ], 'المظهر' => [ 'skin_color'=>'لون البشرة','eye_color'=>'لون العين','hair_color'=>'لون الشعر','beard'=>'اللحية','body_type'=>'نمط الجسم','ethnicity'=>'العِرق' ], 'الصحة' => [ 'health_status'=>'الحالة الصحية' ] ])
@foreach($groups as $groupTitle => $fields)
@foreach($fields as $field=>$label)
@php($optKey = $optionMap[$field] ?? null) @php($options = $optKey ? ($profileOptions[$optKey] ?? []) : []) @if(!empty($options)) @else @if($field==='hobbies') @elseif($field==='income') @else @endif @endif
@endforeach
@endforeach