*
sect-heading + tf-btn "View All Products"
*
swiper tf-swiper wrap-sw-over data-preview=3
*
* The parent index.blade.php renders the `container-full` wrapper and skips its
* own heading for this style (see $selfHeadingStyles / $containerClass).
*
* Attrs: title, subtitle, view_all_url, view_all_text, items_per_row (default 3).
*/
$list = collect($products);
$heading = trim((string) ($shortcode->title ?? ''));
$subheading = trim((string) ($shortcode->subtitle ?? ''));
$viewAllUrl = trim((string) ($shortcode->view_all_url ?? '')) ?: '#';
$viewAllText = trim((string) ($shortcode->view_all_text ?? '')) ?: __('View All Products');
$perView = max(1, min(6, (int) ($shortcode->items_per_row ?: 3)));
$sliderId = 'ecommerce-products-side-' . uniqid();
@endphp
@if ($list->isNotEmpty())
@foreach ($list as $product)
@includeIf(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['product' => $product])
@endforeach
@endif