@php $categories = App\Models\Category::active() ->where('is_featured', Status::YES) ->orderBy('id', 'DESC') ->withCount([ 'jobs' => function ($query) { $query->published()->approved(); }, ]) ->get(); @endphp @if ($categories->count())
@foreach ($categories as $category)
{{ __(@$category->name) }}

{{ $category->jobs_count }} @lang('Job')

@endforeach
@endif