@if (page()->hasAnyBlocks()) @php $__widgetsHtml = page()->renderAllWidgets(); // If global layout rendered a Content marker, inject @stack('content') at that position if (page()->isGlobalContentRendered() && str_contains($__widgetsHtml, '')) { $__stackContent = $__env->yieldPushContent('content'); if (isset($sections['content'])) { $__stackContent .= $sections['content']; } $__widgetsHtml = str_replace('', $__stackContent, $__widgetsHtml); } @endphp
{!! $__widgetsHtml !!}
@endif