@php $featureAuthorSection = getContent('featured_product.content', true); $featuredAuthor = \App\Models\User::where('is_author_featured', Status::YES) ->where('status', Status::USER_ACTIVE) ->with([ 'products' => function ($query) { $query->where('status', Status::YES)->orderByDesc('total_sold')->limit(4); }, ]) ->first(); @endphp @if ($featuredAuthor) @endif