@php $content = getContent('top_freelancer.content', true)->data_values; $counterElement = getContent('counter.element', false, 3, true); $topHundredFreelancers = App\Models\User::active() ->orderBy('earning', 'DESC') ->orderByDesc('users.avg_rating') ->with([ 'projects' => function ($query) { $query->where('status', Status::PROJECT_COMPLETED); }, 'skills','badge' ]) ->take(100) ->get(); @endphp

{{ __(@$content->heading) }}

{{ __(@$content->subheading) }}

@if ($topHundredFreelancers->count())
@foreach ($topHundredFreelancers ?? [] as $freelancer) @include($activeTemplate . 'partials.freelancer') @endforeach
@endif
@forelse ($counterElement as $counter)
@php echo @$counter->data_values->icon; @endphp
@if ($loop->iteration == 3) @lang('Minute') @else @lang('Million') @endif
{{ __(@$counter->data_values->content) }}
@empty @include('Template::partials.empty', ['message' => 'Facilities not found!']) @endforelse