@php $spot = null; try { $spot = isset($user->premium_spotlight_next_at) ? \Illuminate\Support\Carbon::parse($user->premium_spotlight_next_at) : null; } catch (\Throwable $e) { $spot = null; } $spotActive = $spot && $spot->gt(now()); @endphp @if($spotActive) ⭐ Spotlight @endif
@php $avatarPath = $user->avatar ?? ($user->photo ?? null); if ($avatarPath && !str_starts_with($avatarPath, 'http')) { $candidate = 'avatars/' . basename($avatarPath); $avatarUrl = \Illuminate\Support\Facades\Storage::disk('public')->exists($candidate) ? \Illuminate\Support\Facades\Storage::disk('public')->url($candidate) : (filter_var($avatarPath, FILTER_VALIDATE_URL) ? $avatarPath : $avatarPath); } else { $avatarUrl = $avatarPath; } $avatarUrl = $avatarUrl ?: asset('images/default-avatar.png'); @endphp {{ $user->name ? ('صورة ' . $user->name) : 'صورة مستخدم' }}

{{ $user->name ?? '—' }} @if(($user->is_verified ?? false)) @endif @php($level = strtolower((string)($user->membership_level ?? 'free'))) @if($level && $level !== 'free') @if($level==='premium') ⭐ Premium @elseif($level==='gold') ★ Gold @else ☆ Basic @endif @endif

@php $cityName = null; $countryName = null; try { $cityName = $user->city->name ?? ($user->city_name ?? (is_string($user->city ?? null) ? $user->city : null)); } catch (\Throwable $e) { $cityName = $user->city_name ?? null; } try { $countryName = $user->country->name ?? (is_string($user->country ?? null) ? $user->country : null); } catch (\Throwable $e) { $countryName = is_string($user->country ?? null) ? $user->country : null; } @endphp

{{ $cityName ?? 'غير محدد' }}، {{ $countryName ?? 'غير محدد' }}

@if(isset($user->match_score)) @php($ms = (int) $user->match_score)
⚡ {{ $ms }}%
@endif
@if(is_object($user) && method_exists($user,'isMutualAttractionWith') && auth()->check() && $user->isMutualAttractionWith(auth()->user())) 💕 انجذاب متبادل @endif @if(is_object($user) && method_exists($user,'isMutualLikeWith') && auth()->check() && $user->isMutualLikeWith(auth()->user())) 💙 إعجاب متبادل @endif @if(is_object($user) && method_exists($user,'isMutualInterestWith') && auth()->check() && $user->isMutualInterestWith(auth()->user())) 💜 اهتمام متبادل @endif
اكتمال الملف {{ (int)($user->profile_completeness ?? ($user->completion ?? 0)) }}%
👁️ عرض الملف
{{ (is_object($user) && method_exists($user,'attractions')) ? $user->attractions()->count() : 0 }}
انجذاب
{{ (is_object($user) && method_exists($user,'likes')) ? $user->likes()->count() : 0 }}
إعجاب
{{ (is_object($user) && method_exists($user,'interests')) ? $user->interests()->count() : 0 }}
اهتمام