@php $isOnline = false; if($user->last_login) { try { $isOnline = \Carbon\Carbon::parse($user->last_login)->diffInMinutes(now()) < 10; } catch (\Exception $e) { $isOnline = false; } } @endphp @php $smartScore = isset($user->smart_score) ? (float) $user->smart_score : null; $scoreLabel = ''; $scoreClass = ''; if ($smartScore !== null) { if ($smartScore >= 75) { $scoreLabel = 'توافق ممتاز'; $scoreClass = 'score-excellent'; } elseif ($smartScore >= 50) { $scoreLabel = 'توافق جيد'; $scoreClass = 'score-good'; } else { $scoreLabel = 'توافق مقبول'; $scoreClass = 'score-fair'; } } @endphp
@if($smartScore !== null) {{ $scoreLabel }} {{ $smartScore }}% @endif
{{$user->name}} @if($user->identity_verified_at) موثق @endif
{{ $user->completedProjectsRate() }}% إكمال المشاريع {{$user->country?->name}}
@if($user->description && trim($user->description) !== '') {!! format_text($user->description) !!} @else لم يكتب نبذة بعد @endif
@if($user->category) {{$user->category?->name}} @endif