Pengaturan Navigasi & Menu

Kelola tautan menu pada Header dan Footer portal publik.

@php $locations = [ 'header' => 'Header Navigasi Utama', 'footer_media' => 'Footer: Media & Publikasi', 'footer_services' => 'Footer: Layanan Publik', 'footer_external' => 'Footer: Tautan Eksternal' ]; @endphp @foreach($locations as $locationKey => $locationName)

{{ $locationName }}

@if(isset($menus[$locationKey]) && $menus[$locationKey]->count() > 0) @foreach($menus[$locationKey] as $index => $menu) @if($menu->children && $menu->children->count() > 0) @foreach($menu->children as $child) @endforeach @endif @endforeach
Urutan Label Menu URL Tujuan Target Status Aksi
@if(!$loop->first) @endif {{ $menu->order }} @if(!$loop->last) @endif
{{ $menu->label }} {{ $menu->url }} {{ $menu->target === '_blank' ? 'Tab Baru' : 'Tab Sama' }} @if($menu->is_active) Aktif @else Sembunyi @endif
@if(!$loop->first) @endif {{ $menu->order }}.{{ $child->order }} @if(!$loop->last) @endif
{{ $child->label }} {{ $child->url }} {{ $child->target === '_blank' ? 'Tab Baru' : 'Tab Sama' }} @if($child->is_active) Aktif @else Sembunyi @endif
@else
Belum ada menu di lokasi ini.
@endif
@endforeach

{{ $modalMode === 'create' ? 'Tambah Menu Baru' : 'Edit Menu' }}

@error('label') {{ $message }} @enderror
@if($linkType !== 'custom')
@endif

Pilih menu induk jika ini adalah sub menu (dropdown).

Gunakan path relatif (misal `/about`) untuk halaman internal. Isi `#` jika menu ini hanya berupa tombol klik (*dropdown parent*).

@error('url') {{ $message }} @enderror