侧边栏功能名称 @foreach ($sections as $section) @php $sectionInput = "section_titles[{$section['slug']}]"; @endphp
一级功能
@if (! empty($section['pages']))
@foreach (collect($section['pages'])->flatMap(fn ($page) => [$page, ...($page['children'] ?? [])]) as $page) @php $pageInput = "page_titles[{$section['slug']}][{$page['slug']}]"; @endphp
功能名称
@endforeach
@endif
@endforeach