
<link href="https://fonts.google.com/specimen/Open+Sans" rel="stylesheet">
<div style="background-color:white;height:100%;width:200px;position:fixed;"  class="strb-menu-hide menu-colon strb_col_menu <?php if(!isset($_COOKIE['strb_menu']) || $_COOKIE['strb_menu'] == 'open') { ?>strb_col_menu_big<?php } ?>">
    <div class="strb_nav d-flex flex-column bd-highlight mb-3 strb_sticky" style="position:fixed;top:110px;">
        
        <div class="p-0 m-0 p-3">
            <a style="display:none;" href="<?php echo NXTLVL_Classes_Helpers_Tools::getAdminUrl('next_lvl') ?>" class="strb_nav_item_logo"><span class="strb_logo strb_logo_30 float-left"></span></a>
            <a style="display:none;" href="<?php echo NXTLVL_Classes_Helpers_Tools::getAdminUrl('next_lvl') ?>" class="strb_nav_item_logo_text"><span class="strb_logo_toolbar_text ml-2 text-dark float-left"></span></a>
        </div>
        <div style="width:100%;margin-top:-70px;margin-bottom:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;">
            <div style="display:flex;">
                <div class="logo-text" style="width:120px;margin-left:5px;">
                    <div style="font-weight:600;font-size:19px;letter-spacing:2px;margin-top:0px;color:#033;">Next Level <div style="font-size:16px;margin-left:5px;">Marketing</div></div>
                </div>
            </div>
          
        </div>
       

        <?php
        $tabs = NXTLVL_Classes_ObjController::getClass('NXTLVL_Models_Menu')->getTabs(NXTLVL_Classes_Helpers_Tools::getValue('page'));

        if (!empty($tabs)) {
            $current = NXTLVL_Classes_Helpers_Tools::getValue('tab', NXTLVL_Classes_Helpers_Tools::arrayKeyFirst($tabs));

            foreach ($tabs as $menuid => $item) {

                if (isset($item['show']) && !$item['show']) {
                    continue;
                }

                if (!NXTLVL_Classes_Helpers_Tools::userCan($item['capability'])) continue;

                $class = 'bg-white';
                if ($current == $menuid || $current == substr($menuid, strpos($menuid, '/') + 1)) {
                    $class = 'bg-light';
                }

                if ( '' === $menuid || false !== strpos( $menuid, '/' ) ) {
                    list($menuid, $tab) = explode('/', $menuid);
                }

                ?>
                <?php //if($item['title']!="First time setup" || STRB_Classes_Helpers_Tools::getOption("strb_finish")!="finish"){ ?>
                    <a href="<?php if($item['title']=="Next Level Content" || $item['title']=="Settings" || $item['title']=="First time setup") echo esc_url(NXTLVL_Classes_Helpers_Tools::getAdminUrl($menuid, $tab));    else { echo "https://www.squirrly.co/marketingtools/starbox-pro-quickstart-guide/";}?> "    <?php if(!$item['title']=="Authors" || !$item['title']=="General settings")?>     class="m-0 p-3 text-dark align-middle strb_nav_item <?php echo esc_attr($class) ?>" data-tab="level"><i class="<?php echo esc_html($item['icon']) ?> text-dark"></i><span  class="strb_nav_item_text text-dark ml-2 " style="font-family:'Open Sans';font-weight:400;"><?php echo esc_html($item['title']) ?></span></a> 
                <?php //}
            }
        }
        ?>
        <div class="m-0 p-3 font-dark strb_nav_item strb_nav_item_collapse"><i class="dashicons-before dashicons-arrow-left-alt text-dark"></i><span class="strb_nav_item_text text-dark ml-2"><?php echo esc_html__('Collapse','starbox') ?></span></div>
        <div class="m-0 p-3 font-dark strb_nav_item bg-default strb_nav_item_open"><i class="dashicons-before dashicons-arrow-right-alt text-dark"></i></div>
    </div>
    
    <script>
        (function ($){
            $('.strb_nav_item_open').on('click', function (){
                $('.strb_col_menu').addClass('strb_col_menu_big');
                $('.menu-colon').css("width","200px");
                $(".strb_nav_item").css("width","200px");
                $('.top-logo').css("margin-left","55px")
                $.strb_setCookie('strb_menu', 'open');
                $('.logo-text').css("display","block");
            });
            $('.strb_nav_item_collapse').on('click', function (){
                $('.strb_col_menu').removeClass('strb_col_menu_big');
                $('.strb_nav_item').css("width","70px");
                $('.menu-colon').css("width","70px");
                $('.top-logo').css("margin-left","10px")
                //$.strb_setCookie('strb_menu', 'collapse');
                $('.logo-text').css("display","none");
                
            });
        })(jQuery);
    </script>
</div>
