@php Theme::set('hasSlider', true); @endphp
@foreach ($sliders as $slider) @php $title = $slider->title; $description = $slider->description; $tabletImage = $slider->getMetaData('tablet_image', true) ?: $slider->image; $mobileImage = $slider->getMetaData('mobile_image', true) ?: $tabletImage; @endphp
image) data-background="{{ RvMedia::getImageUrl($slider->image, $title) }}" @endif @if ($tabletImage) data-tablet-background="{{ RvMedia::getImageUrl($tabletImage) }}" @endif @if ($mobileImage) data-mobile-background="{{ RvMedia::getImageUrl($mobileImage) }}" @endif >
@if($title || $description)
@if($description) font_family_of_description) style="--tp-ff-oregano: '{{ $fontFamily }}'" @endif> {!! BaseHelper::clean($description) !!} @endif @if ($title)

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

@endif @if($buttonLabel = $slider->getMetaData('button_label', true)) @endif
@endif
@endforeach