@php $userTabs = [ 'users' => ['label' => __('Пользователи'), 'href' => '/admin/users.php', 'can' => 'users.view'], 'teachers' => ['label' => __('Учителя'), 'href' => '/admin/teachers.php', 'can' => 'teachers.view'], 'parents' => ['label' => __('Родители'), 'href' => '/admin/parents.php', 'can' => 'parents.view'], ]; // Only the tabs this user can open — the three pages are delegable separately. $userTabs = array_filter($userTabs, fn ($tab) => \App\Support\Permissions::current($tab['can'])); @endphp