@php if(empty($disabled)) { $disabled = NULL; } @endphp @if(!empty($pageNosEngagements->childPages))
@php $count = 1; @endphp @foreach($pageNosEngagements->childPages as $l)
request()->route()->getName() === $l['button']['url'] || $disabled == $count, ])> @if(!empty($l['image']))
{{ !empty($l['button']['title']) ? $l['button']['title'] : 'engagement' }}
@endif @if(!empty($l['text']))
{{ $l['text'] }}
@endif @if(!empty($l['button']['url'])) {{ $l['button']['title'] }} @endif
@php $count++; @endphp @endforeach
@endif