public function getBaseData()
    {
        // menu links for the application part
        $applicationMenuLinks = MenuLink::applicationMenuLinks();
        // menu links for the cms part
        $cmsMenus = MenuLink::cmsMenus();

        // user data
        $user = Auth::user();
        $user->avatar = $user->avatar(200, 200, true);

        // Get Labels
        $labels = Language::getlabels();
        $pluginsConfigs = Plugin::configs();

        // logout link
        $logoutLink = route('backend.base.logoutUser');

        // Logo
        $projectLogo =  Settings::logo();
        if($projectLogo) {
            $projectLogoURL = asset($projectLogo->thumb(200, 200));
        }else{
            $projectLogoURL = asset('public/images/logo-mana.png');
        }

        $settings  =  Settings::getAllSettings();
        $settings['logo'] = $projectLogoURL;

        // User data object
        //todo qetu eshte nje bug se query nuk bahet me keyby
        $postTypeSlugs = PostType::all()->toArray();
        $postTypeSlugs = array_pluck($postTypeSlugs, "slug");

        $globalData = [
            'post_type_slugs' => $postTypeSlugs,
            'permissions' => $user->getPermissions(),
            'settings' => $settings,
            'ini_upload_max_filesize' => ini_get('upload_max_filesize'),
            'ini_post_max_size' => ini_get('post_max_size')
        ];

        // all languages
        $languages = Language::all();

        return [
            'languages' => $languages,
            'applicationMenuLinks' => $applicationMenuLinks,
            'cmsMenus' => $cmsMenus,
            'auth' => $user,
            'labels' => $labels,
            'pluginsConfigs' => $pluginsConfigs,
            'logoutLink' => $logoutLink,
            'global_data' => $globalData,
        ];
    }