@php $title = $section->settings['title'] ?? 'Trending Now'; $subtitle = $section->settings['subtitle'] ?? 'The most viral digital assets today.'; $limit = $section->settings['limit'] ?? 4; $titleAlignment = $section->settings['title_alignment'] ?? 'left'; $products = \App\Modules\Product\Models\Product::with(['category', 'vendor', 'images']) ->published() ->visible() ->orderByDesc('views_count') // Trending usually means most viewed or recently popular ->take($limit) ->get(); @endphp
{{-- Refined Background glow --}}
Viral Performance

{{ $title }}

{{ $subtitle }}

Explore Trending
@forelse ($products as $product) @include('pages.storefront._product-card', ['product' => $product]) @empty

No trending data currently available

@endforelse