@php $ads = collect($ads); $hasFourth = $ads->skip(3)->isNotEmpty(); @endphp
@if($hasFourth)
@endif
@foreach($ads->take(3) as $ad)
$loop->first, 'col-md-6 col-sm-6' => ! $loop->first])>
$loop->first]) style="background-color: #F3F7FF">
{!! Theme::partial('shortcodes.ads.includes.item', ['item' => $ad]) !!}
@if($subtitle = $ad->getMetaData('subtitle', true)) {!! BaseHelper::clean(nl2br($subtitle)) !!} @endif @if($title = $ad->getMetaData('title', true))

@if ($ad->url) open_in_new_tab) target="_blank" @endif> @endif {!! BaseHelper::clean(nl2br($title)) !!} @if ($ad->url) @endif

@endif @if(($buttonLabel = $ad->getMetaData('button_label', true)) && $loop->first) @endif
@endforeach
@if($hasFourth) @php $ad = $ads->skip(3)->last(); @endphp
{!! Theme::partial('shortcodes.ads.includes.item', ['item' => $ad]) !!}
@if($subtitle = $ad->getMetaData('subtitle', true)) {!! BaseHelper::clean(nl2br($subtitle)) !!} @endif @if($title = $ad->getMetaData('title', true))

@if ($ad->url) open_in_new_tab) target="_blank" @endif> @endif {!! BaseHelper::clean(nl2br($title)) !!} @if ($ad->url) @endif

@endif @if($buttonLabel = $ad->getMetaData('button_label', true)) @endif
@endif @if($hasFourth)
@endif