@php $allSections = [ 'general' => [ 'label' => 'General', 'items' => [ ['id' => 'overview', 'icon' => 'chart-bar', 'label' => 'Overview'], ['id' => 'workstations', 'icon' => 'computer-desktop', 'label' => 'Workstations', 'href' => url('/workstation')], ['id' => 'user-role-management', 'icon' => 'cog-6-tooth', 'label' => 'User & Role Management', 'href' => url('/workstation/administrator')], ['id' => 'transaction', 'icon' => 'document-text', 'label' => 'Transaction', 'href' => route('dashboard.transaction')], ['id' => 'property', 'icon' => 'building-office-2', 'label' => 'Property'], ['id' => 'property-index', 'icon' => 'folder', 'label' => 'Index Property', 'href' => url('/property/index')], ['id' => 'party', 'icon' => 'user-group', 'label' => 'Party'], ['id' => 'applicant', 'icon' => 'user', 'label' => 'Applicant'], ['id' => 'document', 'icon' => 'document-magnifying-glass', 'label' => 'Document Search'], ['id' => 'survey', 'icon' => 'pencil-square', 'label' => 'Survey Plan'], ['id' => 'boundary', 'icon' => 'map', 'label' => 'Boundaries'], ['id' => 'dispute', 'icon' => 'scale', 'label' => 'Disputes'], ['id' => 'boundary-documents', 'icon' => 'document-plus', 'label' => 'Index Documents', 'href' => url('/boundary/documents/upload')], ['id' => 'audit-trail', 'icon' => 'clipboard-document-list', 'label' => 'Audit Trail'], ['id' => 'commission-members', 'icon' => 'user-group', 'label' => 'Commission Members'], ['id' => 'agency-portal', 'icon' => 'shield-check', 'label' => 'Agency Portal'], ['id' => 'incidents', 'icon' => 'exclamation-triangle', 'label' => 'Incidents'], ['id' => 'community-grazing', 'icon' => 'map-pin', 'label' => 'Community & Grazing'], ['id' => 'representation', 'icon' => 'chart-bar', 'label' => 'Representation'], ], ], 'admin' => [ 'label' => 'Admin', 'items' => [ ['id' => 'users', 'icon' => 'shield-check', 'label' => 'Users & Roles'], ['id' => 'landing', 'icon' => 'globe-alt', 'label' => 'Landing'], ['id' => 'data-centric-center', 'icon' => 'presentation-chart-bar', 'label' => 'Data Centric Center', 'href' => url('/data-centric-center')], ], ], ]; $allowedSet = array_flip($allowedSections ?? []); @endphp