@foreach($ads as $ad) @php $title = $ad->getMetaData('title', true); $subtitle = $ad->getMetaData('subtitle', true); $buttonLabel = $ad->getMetaData('button_label', true) @endphp
$title || $subtitle])> @if($title || $subtitle)
@if($subtitle) {!! BaseHelper::clean(nl2br($subtitle)) !!} @endif @if($title)

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

@endif @if($buttonLabel && $ad->url) @endif
{!! Theme::partial('shortcodes.ads.includes.item', ['item' => $ad]) !!}
@else open_in_new_tab) target="_blank" @endif> {!! Theme::partial('shortcodes.ads.includes.item', ['item' => $ad]) !!} @endif
@endforeach