@foreach ($isInWrapper as $section)
@php
$viewName = 'front.sections.' . $section->sectionType->type;
@endphp
@if (View::exists($viewName))
@include($viewName)
@endif
@endforeach
@endif
@foreach ($isNotInWrapper as $section)
@if ($section->id !== $staticHeroSection?->id)
@php
$viewName = 'front.sections.' . $section->sectionType->type;
@endphp
@if (View::exists($viewName))
@include($viewName)
@endif
@endif
@endforeach