@php // Items store a plain path slug in `url` or `route` (not a registered // Laravel route name); url() passes absolute URLs through unchanged. $menuItemHref = function ($item) { $path = $item->url ?: $item->route; return $path ? url(rtrim($path, '/') . '/') : '#'; }; @endphp
Legal Links
@foreach ($items as $item) @endforeach