@php($style = $shortcode->style) @switch($style) @case(1)

{!! BaseHelper::clean(str_replace($shortcode->title_highlight, "$shortcode->title_highlight", $shortcode->title)) !!}

@if($subtitle = $shortcode->subtitle)

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

@endif
@if($shortcode->enabled_search_box && $shortcode->search_tabs)
{!! Theme::partial('search-box', compact('categories', 'style', 'shortcode', 'searchTabs')) !!}
@endif @break @case(2)

{!! BaseHelper::clean(str_replace($shortcode->title_highlight, "$shortcode->title_highlight", $shortcode->title)) !!}

@if($subtitle = $shortcode->subtitle)

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

@endif
@if($shortcode->enabled_search_box && $shortcode->search_tabs) {!! Theme::partial('search-box', compact('categories', 'style', 'shortcode', 'searchTabs')) !!} @endif
@break @case(4)
preview_video_image) data-images="{{ json_encode($images) }}" @endif>

{!! BaseHelper::clean(str_replace($shortcode->title_highlight, "$shortcode->title_highlight", $shortcode->title)) !!}

@if ($subtitle = $shortcode->subtitle)

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

@endif @if($shortcode->enabled_search_box && $shortcode->search_tabs)
{!! Theme::partial('search-box', [ 'style' => 1, 'categories' => $categories, 'shortcode' => $shortcode, 'searchTabs' => $searchTabs, ]) !!}
@endif
@if ($previewImage = $shortcode->preview_video_image ?: Arr::first($images))
{{ RvMedia::image($previewImage, $shortcode->title, attributes: ['class' => 'rounded-md rounded-t-full shadow-md']) }}
@endif
@break @default

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

@if($subtitle = $shortcode->subtitle)

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

@endif
@if($shortcode->enabled_search_box && $shortcode->search_tabs) @php($searchType = $shortcode->search_type)
@endif @break @endswitch