@extends('layouts.admin') @section('title', $menu->title) @section('content') @php $editing = request('edit_item') ? $menu->allItems->firstWhere('id', (int) request('edit_item')) : null; $depthMap = collect($rows)->mapWithKeys(fn ($row) => [$row['item']->id => $row['depth']]); @endphp Menus
@csrf
Preview site
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@forelse($rows as $row) @php $item = $row['item']; @endphp
{{ $item->displayTitle() }} @if($item->highlight)Highlight@endif @unless($item->is_visible)Hidden@endunless {{ $item->type }}
{{ $row['url'] }}
@csrf
@csrf
@csrf
@csrf
@csrf
Edit
@csrf @method('DELETE')
@empty
No items yet — add your first link below.
@endforelse
@csrf @if($editing) @method('PUT') @endif
@foreach(['collection' => 'collections', 'page' => 'pages', 'product' => 'products', 'post' => 'posts', 'policy' => 'policies'] as $type => $key) @endforeach
@if($editing) Cancel edit @endif

Live preview

Visible items only · {{ $menu->handle }}

    @include('admin.menus._preview-tree', ['nodes' => $preview, 'depth' => 0])
  • Use a custom URL of # for dropdown parents.
  • Resource links stay in sync when handles change.
  • Header/footer handles are protected system menus.
@unless($menu->isProtected()) @endunless @endsection