@php $backgroundImage = $shortcode->background_image; $backgroundImage = $backgroundImage ? RvMedia::getImageUrl($backgroundImage) : null; $variablesStyle = [ "--shortcode-background-image: url($backgroundImage) !important;" => $backgroundImage, ]; @endphp
htmlAttributes() !!} class="shortcode-contact-block section-cta-3 position-relative py-150 section-padding fix" @style($variablesStyle) >
@if ($title = $shortcode->title)

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

@endif @php $contactLabel = $shortcode->contact_label; $contactTitle = $shortcode->contact_title; @endphp @if ($contactLabel && $contactTitle) @if ($contactIcon = $shortcode->contact_icon) {{ RvMedia::image($contactIcon) }} @endif {!! BaseHelper::clean($contactTitle) !!} {!! BaseHelper::clean($contactLabel) !!} @endif @if (($buttonLabel = $shortcode->primary_action_label) && ($buttonUrl = $shortcode->primary_action_url)) {!! BaseHelper::clean($buttonLabel) !!} @if($shortcode->primary_action_icon) @endif @endif