@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; $products = $products ?? collect(); $prdList = collect($products); $leftCol = $prdList->slice(0, 2)->values(); $rightCol = $prdList->slice(2)->values(); $bannerImage = $bannerImage ?? ''; $bannerHeading = $bannerHeading ?? ''; $bannerSubheading = $bannerSubheading ?? ''; $bannerBtnText = $bannerBtnText ?? __('Shop Now'); $bannerBtnUrl = $bannerBtnUrl ?? '#'; @endphp @if ($prdList->isNotEmpty())
@if ($bannerImage !== '') @endif @if ($leftCol->isNotEmpty())
@foreach ($leftCol as $product) @includeIf(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['product' => $product]) @endforeach
@endif
@if ($rightCol->isNotEmpty())
@foreach ($rightCol as $product) @includeIf(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['product' => $product]) @endforeach
@endif
@else

{{ __('No products available in this tab.') }}

@endif