@php /** * Shell shared by every settings screen: breadcrumb, title, skeleton and * the form driven by $sections. A page only needs the array plus the four * data-* below, which is what keeps this from becoming one view per page. * * Expects: $pageTitle, $subtitle?, $sections, $resource, $blocks? */ $blocks = $blocks ?? array_map(fn ($s) => max(1, count($s['items'])), $sections); @endphp
@include('includes.breadcrumb') @include('includes.flash')

{{ $pageTitle }}

@if(! empty($subtitle))

{{ $subtitle }}

@endif
@include('includes.skeleton-config', ['blocks' => $blocks])
@include('includes.form-sections', ['sections' => $sections])