@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Asymmetric hero grid — mirrors home-sport.html §1 (lines 1330-1420): * `grid-cls-layout grid-cls-v3` containing 1 LARGE hero (`item1 banner-v04 style-2 rounded-0`, * full-width with title+desc+solid-white CTA) + 2 SMALL stacked cards * (`item2/item3 box-cls-v1 style-3 hover-img`, half-width each with absolute-positioned * content + line-button CTA). * * Layout: 2-col grid where item1 spans col 1 (full height) + item2/item3 stack in col 2. */ $heroImage = $shortcode->hero_image ?? null; $heroTitle = trim((string) ($shortcode->hero_title ?? '')); $heroDesc = trim((string) ($shortcode->hero_desc ?? '')); $heroBtnText = trim((string) ($shortcode->hero_button_text ?? '')); $heroBtnUrl = $shortcode->hero_button_url ?: '#'; $cards = []; foreach ([1, 2] as $i) { $img = $shortcode->{"card_{$i}_image"} ?? null; if (! $img) continue; $cards[] = [ 'image' => $img, 'title' => trim((string) ($shortcode->{"card_{$i}_title"} ?? '')), 'desc' => trim((string) ($shortcode->{"card_{$i}_desc"} ?? '')), 'button_text' => trim((string) ($shortcode->{"card_{$i}_button_text"} ?? '')), 'button_url' => $shortcode->{"card_{$i}_button_url"} ?: '#', ]; } @endphp {{-- .grid-cls-layout.grid-cls-v3 grid template + banner-v04.style-2 overlay positioning live in assets/sass/component/_inline-migrated.scss. --}} {{-- No `flat-spacing` — demo §1 is a bare grid flush under the header; the following section (site-features) supplies the gap with its own top padding. No `.container-full` wrapper either — the demo grid is fully edge-to-edge (`.container-full` carries 15px side padding the demo doesn't have). --}}
htmlAttributes() !!} class="tf-section section-hero-grid-asymmetric">
{{-- ITEM 1 — large hero --}} {{-- ITEMS 2 & 3 — small stacked cards --}} @foreach ($cards as $i => $card) @endforeach