@php $bgColor = $shortcode->background_color; $bgImage = $shortcode->background_image ? RvMedia::getImageUrl($shortcode->background_image) : null; $variablesStyle = [ "--background-color: $bgColor" => $bgColor, "--background-image: url($bgImage)" => $bgImage, ]; @endphp
@if ($subtitle = $shortcode->subtitle) {!! Basehelper::clean($subtitle) !!} @endif @if ($title = $shortcode->title)

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

@endif
@if (($buttonUrl = $shortcode->button_url) && ($buttonLabel = $shortcode->button_label)) @endif
@foreach($tabs as $tab) @php $service = $services->where('id', $tab['service_id'])->first(); $featuredTitles = array_filter( array_map(function (int $index) use ($tab) { if (! $title = Arr::get($tab, "featured_title_$index")) { return null; } return $title; }, range(1, 5))); @endphp
$loop->first]) id="service-{{ $tab['service_id'] }}-tab" role="tabpanel" aria-labelledby="service-{{ $tab['service_id'] }}-tab" tabindex="0">
@if ($image = Arr::get($tab, 'image', $service->image))
{{ RvMedia::image($image, $tab['title']) }}
@endif

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

@if ($description = Arr::get($tab, 'description', $service->description))

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

@endif @if(count($featuredTitles))
    @foreach($featuredTitles as $featuredTitle)
  • {!! BaseHelper::clean($featuredTitle) !!}
  • @endforeach
@endif {!! BaseHelper::clean(Arr::get($tab, 'button_label') ?: __('Read More')) !!}
@endforeach