@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-cosmetic.html §4 (line 1813-1855): * `flat-spacing pt-0 > container > tf-grid-layout md-col-2 gap-10` wrapping 2 * `banner-image-text type-abs style-11 hover-img` cards, each rendering a * square 700x700 image with bottom-left text overlay (title + desc + CTA, white text). * * Demo class `banner-image-text.type-abs.style-11` lacks theme.css coverage — * inline CSS handles square aspect + bottom-left absolute overlay positioning. */ $style = $shortcode->style ?? 'style-11'; $banners = [ [ 'image' => $shortcode->image_1 ?? null, 'title' => $shortcode->title_1 ?? '', 'subtitle' => $shortcode->subtitle_1 ?? '', 'button_text' => $shortcode->button_text_1 ?? '', 'button_url' => $shortcode->button_url_1 ?? '', ], [ 'image' => $shortcode->image_2 ?? null, 'title' => $shortcode->title_2 ?? '', 'subtitle' => $shortcode->subtitle_2 ?? '', 'button_text' => $shortcode->button_text_2 ?? '', 'button_url' => $shortcode->button_url_2 ?? '', ], ]; $sectionClass = trim((string) ($shortcode->section_class ?? 'flat-spacing pt-0')); @endphp {{-- .banner-duo-section .banner-image-text.type-abs.style-11 layout lives in assets/sass/component/_inline-migrated.scss. --}}
htmlAttributes() !!} @class(['tf-section', 'banner-duo-section', $sectionClass])>
@foreach ($banners as $banner) @php $url = $banner['button_url'] !== '' ? $banner['button_url'] : '#'; @endphp @endforeach