app/Module/ModuleThemeTrait.php
public function individualBoxMenuCharts(Individual $individual): array
    {
        $menus = [];
        foreach (app(ModuleService::class)->findByComponent(ModuleChartInterface::class, $individual->tree(), Auth::user()) as $chart) {
            $menu = $chart->chartBoxMenu($individual);
            if ($menu) {
                $menus[] = $menu;
            }
        }

        usort($menus, static function (Menu $x, Menu $y) {
            return I18N::strcasecmp($x->getLabel(), $y->getLabel());
        });

        return $menus;
    }
public function individualBoxMenuCharts(Individual $individual): array
    {
        $menus = [];
        foreach (app(ModuleService::class)->findByComponent(ModuleChartInterface::class, $individual->tree(), Auth::user()) as $chart) {
            $menu = $chart->chartBoxMenu($individual);
            if ($menu) {
                $menus[] = $menu;
            }
        }

        usort($menus, static function (Menu $x, Menu $y) {
            return I18N::strcasecmp($x->getLabel(), $y->getLabel());
        });

        return $menus;
    }
public function individualBoxMenuCharts ( Individual $ individual ) : array { $ menus = [ ] ; foreach ( app ( ModuleService :: class ) -> findByComponent ( ModuleChartInterface :: class , $ individual -> tree ( ) , Auth :: user ( ) ) as $ chart ) { $ menu = $ chart -> chartBoxMenu ( $ individual ) ; if ( $ menu ) { $ menus [ ] = $ menu ; } } usort ( $ menus , static function ( Menu $ x , Menu $ y ) { return I18N :: strcasecmp ( $ x -> getLabel ( ) , $ y -> getLabel ( ) ) ; } ) ; return $ menus ; }
Chart links, to show in chart boxes;

@param Individual $individual

@return Menu[]
Chart links to show in chart boxes ;