@php $adminIds = [1, 2, 3, 4, 5, 18, 17]; $sessionUserId = session('user_id') ?? auth()->id(); $sessionRole = strtolower((string) session('user_role', '')); $isAdmin = in_array((int) $sessionUserId, $adminIds, true) || in_array($sessionRole, ['admin', 'administrator', 'owner', 'staff'], true); $navItems = [ ['route' => 'dashboard', 'match' => 'dashboard', 'label' => 'Início', 'fallback' => '/dashboard'], ['route' => 'lobby.index', 'match' => 'lobby.*', 'label' => 'Lobby', 'fallback' => '/lobby'], ['route' => 'ranking', 'match' => 'ranking', 'label' => 'Ranking', 'fallback' => '/ranking'], ['route' => 'teams.index', 'match' => 'teams.*', 'label' => 'Times', 'fallback' => '/times'], ['route' => 'players.index', 'match' => 'players.*', 'label' => 'Jogadores', 'fallback' => '/jogadores'], ['route' => 'tournaments.index', 'match' => 'tournaments.*', 'label' => 'Torneios', 'fallback' => '/torneios'], ['route' => 'trainings.index', 'match' => 'trainings.*', 'label' => 'Treinamentos', 'fallback' => '/treinamentos'], ]; @endphp