@foreach($sliders as $slider)
@if ($title = $slider->title)

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

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

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

@endif
@php $buttonPrimaryLabel = $slider->getMetaData('button_primary_label', true); $buttonPrimaryUrl = $slider->getMetaData('button_primary_url', true); $buttonPlayLabel = $slider->getMetaData('button_play_label', true); $linkYoutubeUrl = $slider->getMetaData('youtube_url', true); if ($linkYoutubeUrl) { $linkYoutubeUrl = Botble\Theme\Supports\Youtube::getYoutubeVideoID($linkYoutubeUrl); } @endphp @if ($buttonPrimaryUrl && $buttonPrimaryLabel) {!! BaseHelper::clean($buttonPrimaryLabel) !!} @endif @if ($buttonPlayLabel && $linkYoutubeUrl) {!! BaseHelper::clean($buttonPlayLabel) !!} @endif
@endforeach