<nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element"> <span>
                            <img alt="image" width="110" class="" src="<?php echo e(url('assets/frontend/img/logo.png')); ?>" /> <br>
                             </span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold"><?php echo e(Auth::user()->name); ?></strong>
                             </span> <span class="text-muted text-xs block"><?php echo e(Auth::user()->role->name); ?> <b class="caret"></b></span> </span> </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a href="#">Profile</a></li>
                            
                            <li><a href="<?php echo e(url('/logout')); ?>">Logout</a></li>
                        </ul>
                    </div>
                    <div class="logo-element">
                        
                    </div>
                </li>
				 <li <?php if(Request::segment(1) == "admin" or Request::segment(1) == "dashboard"): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('dashboard')); ?>"><i class="fa fa-th-large"></i> <span class="nav-label">Dashboard<span></a></li>
                
				 <li <?php if(Request::segment(1) == "sales" and Request::segment(2) == "create"): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('sales/create')); ?>"><i class="fa fa-diamond"></i> <span class="nav-label">Point of Sale<span></a></li>
				 
				  <li <?php if(Request::segment(1) == "online-orders"): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('online-orders')); ?>"><i class="fa fa-list"></i> <span class="nav-label">Online Orders<span></a></li>
				  <li  <?php if((Request::segment(1) == "orders" or Request::segment(1) == "sales") and Request::segment(2) == ""): ?> class="active" <?php endif; ?>>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Sales</span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li <?php if(Request::segment(1) == "sales" and Request::segment(2) == ""): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('sales')); ?>">POS Sales</a></li>
                        <li <?php if(Request::segment(1) == "orders" ): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('orders')); ?>">Order Sales</a></li>
                       
                    </ul>
                </li>
				
                    <?php /* <li><a href="{{ url('customers') }}"> <i class="fa fa-users"></i> <span class="nav-label">Customers <span></a></li>
                    <li><a href="{{ url('suppliers') }}"> <i class="fa fa-users"></i> <span class="nav-label">Suppliers <span></a></li> */ ?>
                <li <?php if((Request::segment(1) == "categories" or Request::segment(1) == "products") and Request::segment(2) == ""): ?> class="active" <?php endif; ?>>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Products</span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li <?php if(Request::segment(1) == "categories" and Request::segment(2) == ""): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('categories')); ?>">Categories</a></li>
                        <li <?php if(Request::segment(1) == "products" and Request::segment(2) == ""): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('products')); ?>">Products</a></li>
                       
                    </ul>
                </li>
                
                   
    <?php /* <li>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Inventories</span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                       <li><a href="{{ url('inventories/receivings') }}">Receivings</a></li>
                            <li><a href="{{ url('inventories/adjustments') }}">Adjustments</a></li>
                            <li><a href="{{ url('inventories/trackings') }}">Trackings</a></li>
                       
                    </ul>
                </li> */ ?>
            <?php if(Auth::user()->role_id == 1): ?> 
                <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "sales")): ?> class="active" <?php endif; ?>>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Reporting</span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "sales")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/sales')); ?>">Sales</a></li>
                       
                    </ul>
                </li>
                <li <?php if(Request::segment(1) == "settings" and ((Request::segment(2) == "general" or Request::segment(2) == "html" ))): ?> class="active" <?php endif; ?>>
                    <a href="#"><i class="fa fa-gear"></i> <span class="nav-label"> Settings </span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li <?php if(Request::segment(1) == "settings" and (Request::segment(2) == "general" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('settings/general')); ?>">General Setting</a></li>
                        <li <?php if(Request::segment(1) == "editor" and (Request::segment(2) == "html" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('editor/html')); ?>">Code Editor</a></li>
                       
                    </ul>
                </li>
                
                
                <li <?php if(Request::segment(1) == "users"): ?> class="active" <?php endif; ?>>
                    <a href="<?php echo e(url('users')); ?>"><i class="fa fa-users"></i> <span class="nav-label"> Users</span></a>
                </li>
                
                <li <?php if((Request::segment(1) == "settings" or Request::segment(1) == "sliders" or Request::segment(1) == "pages") and ((Request::segment(2) == "homepage" or Request::segment(2) == "menu_management"  or Request::segment(2) == ""))): ?> class="active" <?php endif; ?>>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Frontend Website</span> <span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li <?php if((Request::segment(2) == "homepage" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('settings/homepage')); ?>">Homepage Setting</a></li>
                        <li <?php if((Request::segment(1) == "sliders" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('sliders')); ?>">Sliders</a></li>
                        <li <?php if((Request::segment(1) == "pages" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('pages')); ?>">Pages</a></li>
                        <li <?php if((Request::segment(2) == "menu_management" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('settings/menu_management')); ?>">Menu Management</a></li>
                       
                    </ul>
                </li>
                
                
            <?php endif; ?>

                <li>
                    <a href="<?php echo e(url('logout')); ?>"><i class="fa fa-sign-out"></i> <span class="nav-label"> Logout </span></a>
                </li>
                
            </ul>

        </div>
    </nav>
