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

{{ $item->title }}

{!! clean($item->description) !!}
@endforeach @if (count($collection) % 2 !== 0)
{{ $collection->last()->picture_alt }}

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

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