@php /** * Mirrors html/home-cosmetic.html §11 (lines 2525-2585) and html/home-garden.html * §10 (lines 3213-3273) — `box-icon_V01` swiper. Per-preset knobs: * card_modifier : extra class on .box-icon_V01 (e.g. 'has-line' for home-garden's * vertical separator between cards). * icon_class_extra : extra class on the icon span (e.g. 'mb-16' to match home-garden). * title_tag : 'h5' (home-garden) | 'h6' (cosmetic, default). * pagination_class : 'sw-line-default style-2' (default) | 'sw-dot-default' (home-garden). * data_space_lg : preset-specific gap (e.g. 60.67 for home-garden). */ $cardModifier = trim((string) ($shortcode->card_modifier ?? '')); $iconClassExtra = trim((string) ($shortcode->icon_class_extra ?? '')); // Coalesce FIRST, then validate — `?? 'h6'` inside in_array() still returned the // null original via the ternary, emitting `<>` instead of `
`. $titleTag = ($tt = (string) ($shortcode->title_tag ?? 'h6')) && in_array($tt, ['h4', 'h5', 'h6'], true) ? $tt : 'h6'; $paginationClass = trim((string) ($shortcode->pagination_class ?? 'sw-line-default style-2')); $dataSpaceLg = (float) ($shortcode->data_space_lg ?? 30); $dataSpaceMd = (float) ($shortcode->data_space_md ?? 20); $dataSpace = (float) ($shortcode->data_space ?? 10); $sectionClass = trim((string) ($shortcode->section_class ?? 'flat-spacing')); $innerClass = trim((string) ($shortcode->inner_class ?? '')); $showBorder = ($shortcode->show_border ?? 'no') === 'yes'; @endphp
@if ($showBorder)
@endif
@foreach ($items as $item)
@if (! empty($item['icon_class'])) @endif
@if (! empty($item['title'])) <{{ $titleTag }} class="title">{!! BaseHelper::clean($item['title']) !!} @endif @if (! empty($item['description']))

{!! BaseHelper::clean($item['description']) !!}

@endif
@endforeach