@php /** * `compact` (default no) — drops the top `br-line` divider and the nested * `flat-spacing pb-0` block. HomeSport's demo §2 (html/home-sport.html line * 1397) is a bare `flat-spacing > container > swiper` with no divider and no * doubled top padding; other variants keep the divider + extra spacing. * * `title_tag` (default h5) — heading element for each box-icon title. * home-decor.html §9 (line 2285) uses `
` — pass `title_tag='h6'`. * Allowlist: h2..h6 + p (no h1 — box-icon is a sub-section heading). */ $compact = ($shortcode->compact ?? 'no') === 'yes'; $titleTagRaw = trim((string) ($shortcode->title_tag ?? 'h5')); $titleTag = in_array($titleTagRaw, ['h2', 'h3', 'h4', 'h5', 'h6', 'p'], true) ? $titleTagRaw : 'h5'; @endphp
! $compact])> @unless ($compact)
@endunless
@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