@php /** * Simple-slider style-3 — split-panel hero (Garden / Mental wellness pattern). * Mirrors html/home-garden.html lines 1572-1687: tf-slideshow.slideshow-3 with * slider-wrap_4 — solid colored panel left (text) + image right. * * Mobile (<768px): right .sld-image is hidden via CSS; the .sld-image-abs inside * the left panel becomes the full-width background (image dimmed by an overlay). * * Per-shortcode attrs (all optional): * panel_bg_class : extra class on .sld-content (e.g. "panel-bg-cream") * panel_color : 'white' (default) | 'dark' — drives text-white toggle * button_style : 'pill-white' (default) | 'pill-dark' | 'outline-white' | 'outline-dark' * show_arrows : 'yes' | 'no' (default 'no' — demo uses dots only) * show_dots : 'yes' (default) | 'no' */ $autoplay = ($shortcode->is_autoplay ?? 'yes') === 'yes'; $autoplaySpeed = (int) ($shortcode->autoplay_speed ?? 5000); $showArrows = ($shortcode->show_arrows ?? 'no') === 'yes'; $showDots = ($shortcode->show_dots ?? 'yes') === 'yes'; $panelBgClass = trim((string) ($shortcode->panel_bg_class ?? '')); $panelColor = ($shortcode->panel_color ?? 'white') === 'dark' ? 'dark' : 'white'; $textColorCls = $panelColor === 'dark' ? '' : 'text-white'; $btnStyleRaw = $shortcode->button_style ?? 'pill-white'; $btnClassMap = [ 'pill-white' => 'tf-btn btn-white', 'pill-dark' => 'tf-btn animate-btn', 'outline-white' => 'tf-btn btn-line style-white', 'outline-dark' => 'tf-btn btn-line', ]; $btnClass = $btnClassMap[$btnStyleRaw] ?? 'tf-btn btn-white'; @endphp
htmlAttributes() !!} class="tf-slideshow slideshow-3">
@foreach ($sliders as $sliderItem) @php $title = $sliderItem->title; $description = $sliderItem->description; $subtitle = method_exists($sliderItem, 'getMetaData') ? ($sliderItem->getMetaData('subtitle', true) ?: null) : null; $buttonLabel = method_exists($sliderItem, 'getMetaData') ? ($sliderItem->getMetaData('button_label', true) ?: null) : null; $decorImage = method_exists($sliderItem, 'getMetaData') ? ($sliderItem->getMetaData('decor_image', true) ?: null) : null; $imageUrl = RvMedia::getImageUrl($sliderItem->image); $decorUrl = $decorImage ? RvMedia::getImageUrl($decorImage) : null; @endphp
{{-- Mobile ( {{ $title ?: '' }} @if ($decorUrl) @endif
@if (! empty($subtitle))
{!! BaseHelper::clean($subtitle) !!}
@endif @if (! empty($title))
{!! nl2br(BaseHelper::clean($title)) !!}
@endif @if (! empty($description))

{!! BaseHelper::clean($description) !!}

@endif @if (! empty($buttonLabel)) @endif
{{ $title ?: '' }}
@endforeach
@if ($showDots)
@endif @if ($showArrows)
@endif