<?php unset($menuSet); $menuSet = MenuClass::getMenuArray('stock manager'); ?> @if( User::permitted( $menuSet['role'] ) ) <li> <a href="{{URL::route($menuSet['urlname'])}}"> <i class="icon-list"></i> Manage Stock </a> </li> @endif <?php unset($menuSet); $menuSet = MenuClass::getMenuArray('dashboard'); ?> @if( User::permitted( $menuSet['role'] ) ) <li> <a href="{{URL::route($menuSet['urlname'])}}"> <i class="icon-signin"></i> Go to Admin </a> </li> @endif <li class="divider"></li> <li> <a href="{{URL::route('logout')}}"> <i class="icon-off"></i> Logout </a>
<?php unset($menuSet); $menuSet = MenuClass::getMenuArray('cart'); ?> @if( User::permitted( $menuSet['role'] ) ) <li> <a href="{{URL::route($menuSet['urlname'])}}"> <i class="icon-shopping-cart"></i> {{$menuSet['name']}} </a> </li> @endif <?php unset($menuSet); $menuSet = MenuClass::getMenuArray('systemsettings'); ?> @if( User::permitted( $menuSet['role'] ) ) <li> <a href="{{URL::route($menuSet['urlname'])}}"> <i class="icon-cogs"></i> {{$menuSet['name']}} </a> </li> <li class="divider"></li> @endif <li> <a href="{{URL::route('logout')}}" class=""> <i class="icon-off"></i> Logout </a>