@if($section->column[0]->codename == "n2_column")
@foreach($section->columnOneTitleItems as $items)
@if(!empty($items->title))
{{ $items->title }}
@endif @if(!empty($items->imageThumbnail))
{{ optional(reset($items->imageThumbnail))->description }}
@endif @if(!empty($items->ctaText)) @endif @if(!empty($items->ctaText2)) @endif @if(!empty($items->ctaText3)) @endif
@endforeach
@foreach($section->columnOneItems as $chunk)
{{ $chunk->title }}
{{ $chunk->description }}
@endforeach
@if(!empty($section->columnTwoTitleItems)) @foreach($section->columnTwoTitleItems as $items)
@if(!empty($items->title))
{{ $items->title }}
@endif @if(!empty($items->imageThumbnail))
{{ optional(reset($items->imageThumbnail))->description }}
@endif @if(!empty($items->ctaText)) @endif @if(!empty($items->ctaText2)) @endif @if(!empty($items->ctaText3)) @endif
@endforeach @endif @if(!empty($section->columnTwoItems))
@foreach($section->columnTwoItems as $chunk)
{{ $chunk->title }}
{{ $chunk->description }}
@endforeach
@endif
@else
@foreach($section->columnOneTitleItems as $items)
@if(!empty($items->title))
{{ $items->title }}
@endif @if(!empty($items->imageThumbnail))
{{ optional(reset($items->imageThumbnail))->description }}
@endif @if(!empty($items->ctaText)) @endif @if(!empty($items->ctaText2)) @endif @if(!empty($items->ctaText3)) @endif
@endforeach
@foreach(array_chunk($section->columnOneItems, 3) as $chunk)
@foreach($chunk as $item)
{{ $item->title }}
{{ $item->description }}
@endforeach
@endforeach
@endif