@php use Botble\Base\Facades\BaseHelper; /** * Left heading column + right product slider. * Mirrors html/home-fashion-2.html ยง7 "Product Feature" (lines 4130-4185): *
*
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())
@if ($heading !== '')

{!! BaseHelper::clean($heading) !!}

@endif @if ($subheading !== '')

{!! BaseHelper::clean($subheading) !!}

@endif
{!! BaseHelper::clean($viewAllText) !!}
@foreach ($list as $product)
@includeIf(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['product' => $product])
@endforeach
@endif