@php if ($tabs) { $featureList = array_filter($tabs, fn($tab) => $tab['title'] && empty($tab['data'])); $counterList = array_filter($tabs, fn($tab) => $tab['title'] && $tab['data']); } $title = $shortcode->title; @endphp
@if ($image = $shortcode->image) {{ RvMedia::image($image, $title, attributes: ['class' => 'main-image']) }} @endif @if ($videoURL = $shortcode->video_url) @if ($buttonIcon = $shortcode->button_play_video_label) @else @endif @endif
@if ($image1 = $shortcode->image_1) {{ RvMedia::image($image1, $title, attributes: ['class' => 'sub-image']) }} @endif
@if ($subtitle = $shortcode->subtitle) {{ $subtitle }} @endif @if ($title = $shortcode->title)

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

@endif
@if ($description = $shortcode->description)

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

@endif @if ($featureList)
    @foreach ($featureList as $feature)
  • {!! BaseHelper::clean($feature['title']) !!}
  • @endforeach
@endif @if ($counterList)
    @foreach ($counterList as $counter)
  • @if ($counter['data']) @if ($data = $counter['data'] )

    {{ $data }}

    @endif @if ($counter['title'])

    {!! BaseHelper::clean($counter['title']) !!}

    @endif @endif
  • @endforeach
@endif @if (($buttonLabel = $shortcode->button_label) && ($buttonLink = $shortcode->button_url)) {{ $buttonLabel }} @endif
@if ($bgImage1 = $shortcode->background_image_1) {{ RvMedia::image($bgImage1, $title) }} @endif @if ($bgImage2 = $shortcode->background_image_2) {{ RvMedia::image($bgImage2, $title) }} @endif