@props(['tab' => 'overview']) @php // Übersicht + Docker are open to any role (read-only); the server shell is an operate action. $tabs = array_filter([ ['key' => 'overview', 'label' => __('servers.tab_overview'), 'icon' => 'server', 'show' => true], ['key' => 'docker', 'label' => __('servers.tab_docker'), 'icon' => 'box', 'show' => true], ['key' => 'terminal', 'label' => __('servers.tab_terminal'), 'icon' => 'terminal', 'show' => (bool) auth()->user()?->can('operate')], ], fn ($t) => $t['show']); @endphp