code: private function showLink ($link)
      {
          if (!$link['show_menu']) return false;
  
          $user = \Auth::guard('panel')->user();
  
          return $user->hasRole('super') || $user->hasPermission('/' . $link['url'] . '/all');
      }
docs: Determine whether to show the given entity type in the panel
  @param $link
  @return bool