@php $settings = $section->settings ?? []; $title = $settings['title'] ?? 'Trending Now'; $subtitle = $settings['subtitle'] ?? 'Protocols that are rapidly gaining traction across the network.'; $products = \App\Modules\Product\Models\Product::with(['category', 'vendor']) ->published()->visible() ->where('is_trending', true) ->orderByDesc('views_count') ->limit($settings['limit'] ?? 4) ->get(); @endphp @if($products->count() > 0)
Live Traffic

{{ $title }}

{{ $subtitle }}

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