class TP_Admin
{
    public function __construct()
    {
        add_action('admin_menu', [$this, 'registerMenus']);
    }

    public function registerMenus()
    {
        add_menu_page(
            'Training',
            'Training',
            'manage_options',
            'tp-dashboard',
            [$this, 'dashboardPage'],
            'dashicons-chart-line',
            26
        );

        add_submenu_page(
            'tp-dashboard',
            'Übungen',
            'Übungen',
            'manage_options',
            'tp-exercises',
            ['TP_Admin_Exercises', 'listPage']
        );

        add_submenu_page(
            'tp-dashboard',
            'Neue Übung',
            'Neue Übung',
            'manage_options',
            'tp-exercise-new',
            ['TP_Admin_Exercises', 'editPage']
        );

        add_submenu_page(
            'tp-dashboard',
            'Ergebnisse',
            'Ergebnisse',
            'manage_options',
            'tp-results',
            ['TP_Admin_Results', 'listPage']
        );

        add_submenu_page(
            'tp-dashboard',
            'Einstellungen',
            'Einstellungen',
            'manage_options',
            'tp-settings',
            ['TP_Admin_Settings', 'page']
        );
    }

    public function dashboardPage()
    {
        echo "<div class='wrap'>";
        echo "<h1>Training Plugin</h1>";
        echo "<p>Willkommen.</p>";
        echo "</div>";
    }
}{"id":1,"count":1,"description":"","link":"https:\/\/billard.herbord.de\/?cat=1","name":"Uncategorized","slug":"uncategorized","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"https:\/\/billard.herbord.de\/index.php?rest_route=\/wp\/v2\/categories\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/billard.herbord.de\/index.php?rest_route=\/wp\/v2\/categories"}],"about":[{"href":"https:\/\/billard.herbord.de\/index.php?rest_route=\/wp\/v2\/taxonomies\/category"}],"wp:post_type":[{"href":"https:\/\/billard.herbord.de\/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}