@php use Botble\Base\Facades\BaseHelper; $tabs = $tabs ?? []; $perView = max(1, min(6, (int) ($shortcode->items_per_row ?: 4))); $limit = (int) ($shortcode->limit ?: 10); $ajaxUrl = \Illuminate\Support\Facades\Route::has('public.ajax.featured-tabs-products') ? route('public.ajax.featured-tabs-products') : ''; // Grid-with-banner layout (construction demo ยง4). $tabLayout = trim((string) ($shortcode->tab_content_layout ?? 'swiper')); $isGridWithBanner = $tabLayout === 'grid-with-banner'; $bannerImage = (string) ($shortcode->banner_image ?? ''); $bannerHeading = (string) ($shortcode->banner_heading ?? ''); $bannerSubheading = (string) ($shortcode->banner_subheading ?? ''); $bannerBtnText = (string) ($shortcode->banner_button_text ?? __('Shop Now')); $bannerBtnUrl = (string) ($shortcode->banner_button_url ?? '#'); $tabLabelClass = trim((string) ($shortcode->tab_label_class ?? '')) ?: 'fw-medium'; $tabNavModifier = $isGridWithBanner ? '' : 'style-2 text-nowrap'; @endphp
@if (! empty($shortcode->title ?? ''))

{!! BaseHelper::clean($shortcode->title) !!}

@endif @if (! empty($shortcode->subtitle ?? ''))

{!! BaseHelper::clean($shortcode->subtitle) !!}

@endif
@foreach ($tabs as $i => $tab)
@endforeach