@extends('layouts.admin') @section('content')

Site structure

Navigation

Manage owner-controlled links in the main website navigation and footer. Only Enabled items are public, and lower Display order numbers appear first.

View website ↗
Important fallback behavior: when a location has at least one Enabled custom item, that custom set replaces HMS’s built-in fallback links for that location. Keep essential links represented before enabling a replacement set. Internal links must start with /; external links must use a full https:// URL.

Add navigation item

Primary appears in the desktop/mobile website menu. Footer appears in the footer’s Information links. Use display order values such as 10, 20, 30 to leave room for future links.

@csrf
@foreach(['primary' => ['Primary navigation', 'Website header and mobile menu'], 'footer' => ['Footer navigation', 'Footer Information links']] as $location => [$heading, $description]) @php($locationItems = $items->where('location', $location))

{{ $heading }}

{{ $description }} · {{ $locationItems->where('is_enabled', true)->count() }} enabled

@forelse($locationItems as $item)
{{ $item->label }}{{ $item->is_enabled ? 'Enabled' : 'Hidden' }}

{{ $item->url }} · Display order {{ $item->sort_order }}

Edit ▾
@csrf @method('PUT')
@csrf @method('DELETE')
@empty

No custom items in this location. HMS is currently using its built-in fallback links here.

@endforelse
@endforeach
@endsection