مقارنة المستخدمين

@foreach($users as $u) @endforeach @foreach($users as $u) @endforeach @php($rows = [ 'العمر' => $users->map(fn($u)=> $u->birth_date? $u->birth_date->age : ''), 'الجنس' => $users->map(fn($u)=> $u->gender), 'الدولة' => $users->map(fn($u)=> optional($u->country)->name), 'المدينة' => $users->map(fn($u)=> optional($u->city)->name), 'الحالة الاجتماعية' => $users->map(fn($u)=> $u->marital_status), 'التعليم' => $users->map(fn($u)=> $u->education_level), 'الطول' => $users->map(fn($u)=> $u->height), 'الوزن' => $users->map(fn($u)=> $u->weight), 'نمط الجسم' => $users->map(fn($u)=> $u->body_type), 'العمل' => $users->map(fn($u)=> $u->occupation_sector), 'التدين' => $users->map(fn($u)=> $u->religiosity), 'الصلاة' => $users->map(fn($u)=> $u->pray_frequency), 'الأطفال' => $users->map(fn($u)=> $u->want_children), 'قيم العائلة' => $users->map(fn($u)=> $u->family_values), 'نمط الحياة' => $users->map(fn($u)=> $u->lifestyle), 'التدخين' => $users->map(fn($u)=> $u->smoking), 'الشرب' => $users->map(fn($u)=> $u->drinking), 'اكتمال' => $users->map(fn($u)=> (int)($u->profile_completeness ?? 0) . '%'), ]) @endphp @foreach($rows as $label=>$vals) @foreach($vals as $v) @endforeach @endforeach
{{ $u->name }}
صورة
{{ $label }}{{ $v }}