@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)
{{ $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