@if ((int) $shortcode->limit) @php $products = get_trending_products([ 'take' => (int) $shortcode->limit, 'with' => ['slugable'], 'withCount' => EcommerceHelper::withReviewsCount(), ]); @endphp @if ($products->count())

{!! BaseHelper::clean($shortcode->title) !!}

@foreach ($products as $product)
@include(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), compact('product'))
@endforeach
@endif @endif