@php $settings = $section->settings ?? []; $title = $settings['title'] ?? 'Top Sellers'; $subtitle = $settings['subtitle'] ?? 'The most popular protocols and assets in the matrix right now.'; $products = \App\Modules\Product\Models\Product::with(['category', 'vendor']) ->published()->visible() ->where('is_top_sale', true) ->orderByDesc('sales_count') ->limit($settings['limit'] ?? 4) ->get(); @endphp @if($products->count() > 0)
High Performance

{{ $title }}

{{ $subtitle }}

Exploration Hub
@foreach($products as $product) @include('themes.ecommerce_digital.components.product-card', ['product' => $product, 'badge' => 'Top Seller']) @endforeach
@endif