@forelse ($talents as $talent) @php $skills = $talent->freelancer_skill->take(5) ?? collect(); $skillsCount = $talent->freelancer_skill->count(); $freelancerLevel = moduleExists('FreelancerLevel') ? freelancer_level($talent->id, 'talent') : ''; $rating = $talent->freelancer_ratings_avg_rating ?? 0; $ratingsCount = $talent->freelancer_ratings_count ?? 0; @endphp
@if($talent->image) {{ $talent->full_name }} @else {{ $talent->full_name }} @endif @php $isOnline = false; if ($talent->check_online_status) { try { // Handle both Carbon instance and string $lastSeen = $talent->check_online_status instanceof \Carbon\Carbon ? $talent->check_online_status : \Carbon\Carbon::parse($talent->check_online_status); $isOnline = $lastSeen->diffInMinutes(now()) <= 5; } catch (\Exception $e) { $isOnline = false; } } @endphp
{{ $talent->full_name }} @if($talent->user_verified_status == 1) | @endif @if($talent->is_pro_freelancer) {{ get_static_option('promoted_badge_text', 'Vetted Pro') }} @elseif($talent->created_at && $talent->created_at->diffInDays(now()) < 7) {{ __('New') }} @endif
@if($rating > 0)
{{ number_format($rating, 1) }} ({{ $ratingsCount }}) @else {{ __('No ratings yet') }} @endif
{{ $talent->user_introduction?->title ?? __('Freelancer') }}
@php $allSkills = []; foreach($skills as $skill) { $skillArray = array_map('trim', explode(',', $skill->skill)); $allSkills = array_merge($allSkills, $skillArray); } $displaySkills = array_slice($allSkills, 0, 5); $remainingCount = count($allSkills) - 5; @endphp @forelse($displaySkills as $individualSkill) {{ $individualSkill }} @empty {{ __('No skills added') }} @endforelse @if($remainingCount > 0) +{{ $remainingCount }} @endif

{{ __('Location:') }}

{{ $talent->user_country?->country ?? __('Not specified') }} @if($talent->user_state) , {{ $talent->user_state?->state }} @endif

{{ __('Rate:') }}

@if($talent->hourly_rate) {{ float_amount_with_currency_symbol($talent->hourly_rate) }} / hr @else {{ __('Not specified') }} @endif

{{ __('View Profile') }}
@empty
nothing-found

{{ __('Ops! Sorry, no talents found.') }}

@endforelse