@php $shouldRender = array_reduce(range(1, 4), function($result, $i) { return $result && ContentManager::hasAnyBlocks("Feature $i: number"); }, true) @endphp @if ($shouldRender)
@foreach (range(1, 4) as $i)
{!! ContentManager::contentBlocks("Feature $i: number") !!}
@endforeach
@endif