@php $collectionCustom = count($collection) % 2 === 0 ? $collection : $collection->slice(0, count($collection) - 1); @endphp @foreach ($collectionCustom as $item)
{{ $item->picto_alt }}

{{ $item->title }}

{!! $item->text !!}
@endforeach @if (count($collection) % 2 !== 0)
{{ $collection->last()->picto_alt }}

{{ $collection->last()->title }}

{!! $collection->last()->text !!}
@endif