@php /** * banner-image-text style-feature — centered-heading product feature spread. * Mirrors html/home-office-equipment.html line 1910 (the "Future Mouse * Technology" section): `section-feature` > `sect-heading type-2` + a * `banner-feature` block with a centered square product image and 4 * `feature-detail` callouts (`pst-s1..s4`) radiating around it. * * Emits its own `
` — registered in the index `$skipWrapper` list. * * Knobs: * heading / subheading — section heading * image — centered product shot (square, 471×471 in demo) * feature_{1..4}_name / _desc / _icon — the 4 callouts. _icon is * DUAL-MODE: an icomoon class * (`icon-*`) renders a font * glyph; any other value is * treated as a media path and * rendered as an (the * demo ships line-art PNGs). * * pst-s1/s2 sit on the left, illustration-after-text (order-md-2 / fadeInRight); * pst-s3/s4 sit on the right, illustration-before-text (fadeInLeft) — matches * the demo's left/right column split inside `tf-grid-layout sm-col-2`. */ $features = []; foreach ([1, 2, 3, 4] as $n) { $name = trim((string) ($shortcode->{"feature_{$n}_name"} ?? '')); $desc = trim((string) ($shortcode->{"feature_{$n}_desc"} ?? '')); if ($name === '' && $desc === '') { continue; } $icon = trim((string) ($shortcode->{"feature_{$n}_icon"} ?? '')); // Dual-mode icon: `icon-*` => font glyph; anything else => media image path. $iconIsImage = $icon !== '' && ! \Illuminate\Support\Str::startsWith($icon, 'icon-'); // Per-icon pixel size for image icons — demo §5 svgs are 48×48 except // DPI Settings at 40×40. Default 48. $iconSize = (int) ($shortcode->{"feature_{$n}_icon_size"} ?? 48) ?: 48; $features[] = [ 'name' => $name, 'desc' => $desc, 'icon' => $icon ?: 'icon-Star2', 'iconIsImage' => $iconIsImage, 'iconSize' => $iconSize, ]; } @endphp
htmlAttributes() !!} class="section-feature flat-spacing">
@if (! empty($shortcode->heading ?? '') || ! empty($shortcode->subheading ?? ''))
@if (! empty($shortcode->heading ?? ''))

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

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

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

@endif
@endif