@if(isset($bottom_banners) && $bottom_banners->count() > 0) @php $colClass = 12 / ($bottom_banners->count() > 0 ? $bottom_banners->count() : 2); @endphp @foreach($bottom_banners as $banner)
{{ $banner->title }}
@if(!empty($banner->content)) {!! $banner->content !!} @else @php // Split title by | if provided to match offer-text1 and offer-text2 logic, or just show title $titleParts = explode('|', $banner->title); @endphp @if(count($titleParts) > 1)
{!! trim($titleParts[0]) !!}
{!! trim($titleParts[1]) !!}
@else
{!! trim($banner->title) !!}
@endif @endif
@endforeach @else
cms-banner1
100% All Fresh Items
Once Upon a Farm
Overnight Oats
cms-banner2
Sale! 20% Off
Fresh Vegetables
With Love
@endif