@php $categories = app(\Botble\Blog\Repositories\Interfaces\CategoryInterface::class) ->getModel() ->where('status', \Botble\Base\Enums\BaseStatusEnum::PUBLISHED) ->orderBy('posts_count', 'DESC') ->orderBy('order', 'DESC') ->orderBy('created_at', 'DESC') ->withCount(['posts' => function ($query) { $query->where('posts.status', \Botble\Base\Enums\BaseStatusEnum::PUBLISHED); }]) ->take($config['number_display']) ->with(['slugable']) ->get(); @endphp
{{ $config['name'] }}