@php $urlBack = empty($urlBack ?? null) ? url()->previous() : $urlBack; @endphp
@foreach ($sections as $section) @continue(isset($section['show']) && !$section['show']) @php ($indentClass = !empty($section['indent']) ? ' ps-4' : '') @if(!empty($section['link'])) {{ $section['heading'] }} @else {{ $section['heading'] }} @endif @endforeach
@foreach ($sections as $section) @continue(isset($section['show']) && !$section['show']) @continue(!empty($section['link']))

{{ $section['heading'] }}

@if(!empty($section['view'])) @include($section['view'], $section['data'] ?? []) @endif @if(!empty($section['image'])) @endif @if(!empty($section['text']))

{{ $section['text'] }}

@endif @if(!empty($section['blocks'])) @foreach($section['blocks'] as $block) @if(!empty($block['heading']))

{{ $block['heading'] }}

@endif @if(!empty($block['view'])) @include($block['view'], $block['data'] ?? []) @endif @if(!empty($block['image'])) @endif @endforeach @endif @if(!empty($section['links'])) @endif
@endforeach
{{-- Scrollspy --}}