    <!-- main menu -->
	<nav id="main_menu" ng-controller="sideMenuCtrl">
        <div class="menu_wrapper">
            <ul>
                <li ng-repeat="section in sections" ng-switch="section.link.length > 0" class="first_level" ng-class="{'has_submenu': section.submenu.length > 0}">
                    <a ng-switch-when="true" ui-sref="{{section.link}}">
                        <span class="{{section.icon}}"></span>
                        <span class="menu-title">{{section.title}}</span>
                        <span class="label label-danger" ng-if="section.badge">{{section.submenu.length}}</span>
                    </a>
                    <a ng-switch-when="false" href="javascript:void(0)">
                        <span class="{{section.icon}}"></span>
                        <span class="menu-title">{{section.title}}</span>
                        <span class="label label-danger" ng-if="section.badge">{{section.submenu.length}}</span>
                    </a>
                    <ul ng-if="section.submenu">
                        <li ng-if="section.submenu_title" class="submenu-title">{{section.submenu_title}}</li>
                        <li ng-repeat="item in section.submenu">
                            <a ui-sref="{{item.link}}" ng-class="{ act_nav: $state.includes(item.link) }">{{item.title}}</a>
                        </li>
                    </ul>
                </li>
                <li class="first_level has_submenu">
                    <a href="javascript:void(0)">
                        <span class="first_level_icon icon_menu-circle_alt2"></span>
                        <span class="menu-title">Sub menu</span>
                    </a>
                    <ul>
                        <li class="submenu-title">Sub menu</li>
                        <li><a href="javascript:void(0)">01. Lorem ipsum</a></li>
                        <li class="has_submenu">
                            <a href="javascript:void(0)">02. Lorem ipsum</a>
                            <ul>
                                <li class="has_submenu">
                                    <a href="javascript:void(0)">02.1 Lorem ipsum dolor sit amet</a>
                                    <ul>
                                        <li><a href="javascript:void(0)">02.1.1 Lorem ipsum</a></li>
                                        <li><a href="javascript:void(0)">02.1.2 Lorem ipsum</a></li>
                                        <li><a href="javascript:void(0)">02.1.3 Lorem ipsum</a></li>
                                        <li><a href="javascript:void(0)">02.1.4 Lorem ipsum</a></li>
                                    </ul>
                                </li>
                                <li><a href="javascript:void(0)">02.2 Lorem ipsum</a></li>
                                <li><a href="javascript:void(0)">02.3 Lorem ipsum</a></li>
                                <li><a href="javascript:void(0)">02.4 Lorem ipsum</a></li>
                            </ul>
                        </li>
                        <li class="has_submenu">
                            <a href="javascript:void(0)">03. Lorem ipsum</a>
                            <ul>
                                <li><a href="javascript:void(0)">03.1 Lorem ipsum</a></li>
                                <li><a href="javascript:void(0)">03.2 Lorem ipsum</a></li>
                                <li><a href="javascript:void(0)">03.3 Lorem ipsum</a></li>
                                <li><a href="javascript:void(0)">03.4 Lorem ipsum</a></li>
                            </ul>
                        </li>
                        <li><a href="javascript:void(0)">04. Lorem ipsum</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <menu-toggle></menu-toggle>
	</nav>