@php $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; @endphp Site Settings @if(session('status'))
{{ session('status') }}
@endif
@csrf

How this works

  • Uncheck a group to hide the entire section from the sidebar.
  • Uncheck individual items within a group to hide just those links.
  • Groups marked Protected cannot be hidden to prevent lockout.
  • Module-gated items (e.g. Library) are also controlled at the platform level — this is an additional layer.
@foreach($allGroups as $group) @php $groupLabel = $group['label']; $isProtected = in_array($groupLabel, $protectedGroups); $isHidden = $navSetting->navGroupHidden($groupLabel); @endphp
{{-- Group header --}}
@if(! $isProtected) @else {{-- Protected groups always pass their value --}} @endif {{ $groupLabel }} @if($isProtected) Protected @elseif($isHidden) Hidden @endif
{{ count($group['items']) }} {{ Str::plural('item', count($group['items'])) }}
{{-- Items grid --}}
@foreach($group['items'] as $item) @php $itemHidden = $navSetting->navItemHidden($item['nav_key']); @endphp @endforeach
@endforeach
Reset View