<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('uploads/logo.jpg')); ?>" /> <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->display_name); ?> <b class="caret"></b></span> </span> </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a href="<?php echo e(url('settings/profile')); ?>"><?php echo app('translator')->getFromJson('menu.profile'); ?></a></li>
                            
                            <li><a href="<?php echo e(url('/logout')); ?>"><?php echo app('translator')->getFromJson('menu.logout'); ?></a></li>
                        </ul>
                    </div>
                    <div class="logo-element">
                        
                    </div>
                </li>
				 <?php if (\Entrust::can('dashboard')) : ?>
				 <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"><?php echo app('translator')->getFromJson('menu.dashboard'); ?><span></a></li>
				 <?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('add_sale')) : ?>
				 <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"><?php echo app('translator')->getFromJson('menu.point_of_sale'); ?><span></a></li>
				 <?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('view_expense')) : ?>
				 <li <?php if(Request::segment(1) == "expenses"): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('expenses')); ?>"><i class="fa fa-diamond"></i> <span class="nav-label"><?php echo app('translator')->getFromJson('menu.expenses'); ?><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"><?php echo app('translator')->getFromJson('menu.online_orders'); ?><span></a></li>
				  <?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('view_sale')) : ?>
				  <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"><?php echo app('translator')->getFromJson('menu.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')); ?>"><?php echo app('translator')->getFromJson('menu.pos_sales'); ?></a></li>
                         <li <?php if(Request::segment(1) == "orders" ): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('orders')); ?>"><?php echo app('translator')->getFromJson('menu.order_sales'); ?></a></li>
                       
                    </ul>
                </li>
				 <?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('view_products')) : ?>
				
                    <?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"><?php echo app('translator')->getFromJson('menu.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')); ?>"><?php echo app('translator')->getFromJson('menu.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')); ?>"><?php echo app('translator')->getFromJson('menu.products'); ?></a></li>
                       
                    </ul>
                </li>
				<?php endif; // Entrust::can ?>
                
                   
    <?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 (\Entrust::can('reports')) : ?>
                <li <?php if(Request::segment(1) == "reports") { ?>  class="active"; <?php  } ?>>
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label"><?php echo app('translator')->getFromJson('menu.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')); ?>"><?php echo app('translator')->getFromJson('menu.sales_report'); ?></a></li>
                        <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "sales_by_products")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/sales_by_products')); ?>"><?php echo app('translator')->getFromJson('menu.product_by_sales'); ?></a></li>
                        <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "graphs")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/graphs')); ?>"><?php echo app('translator')->getFromJson('menu.graphs'); ?></a></li>
                        <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "expenses")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/expenses')); ?>"><?php echo app('translator')->getFromJson('menu.expense_report'); ?></a></li>
                        <li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "staff_log")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/staff_log')); ?>"><?php echo app('translator')->getFromJson('menu.staff_logs'); ?></a></li>
						
						<li <?php if((Request::segment(1) == "reports" and Request::segment(2) == "staff_sold")): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('reports/staff_sold')); ?>"><?php echo app('translator')->getFromJson('menu.sales_manager_sold'); ?></a></li>
						
                       
                    </ul>
                </li>
				<?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('setting')) : ?>
				 <li <?php if(Request::segment(2) == "general"): ?> class="active" <?php endif; ?>>
                    <a href="<?php echo e(url('settings/general')); ?>"><i class="fa fa-gear"></i> <span class="nav-label"> <?php echo app('translator')->getFromJson('menu.settings'); ?></span></a>
                </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>-->
                <?php endif; // Entrust::can ?>

                <li <?php if(Request::segment(1) == "tables"): ?> class="active" <?php endif; ?>>
                    <a href="<?php echo e(url('tables')); ?>"><i class="fa fa-list"></i> <span class="nav-label"> <?php echo app('translator')->getFromJson('menu.tables'); ?></span></a>
                </li>

                 <?php if (\Entrust::can('users')) : ?>
				
                
                <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"> <?php echo app('translator')->getFromJson('menu.users'); ?></span></a>
                </li>
				<?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('roles')) : ?>
				
				<li <?php if(Request::segment(1) == "roles"): ?> class="active" <?php endif; ?>>
                    <a href="<?php echo e(url('roles')); ?>"><i class="fa fa-users"></i> <span class="nav-label"> <?php echo app('translator')->getFromJson('menu.roles'); ?></span></a>
                </li>
				<?php endif; // Entrust::can ?>
                 <?php if (\Entrust::can('frontend_setting')) : ?>
                
                <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"><?php echo app('translator')->getFromJson('menu.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')); ?>"><?php echo app('translator')->getFromJson('menu.homepage_setting'); ?></a></li>
                        <li <?php if((Request::segment(1) == "sliders" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('sliders')); ?>"><?php echo app('translator')->getFromJson('menu.sliders'); ?></a></li>
                        <li <?php if((Request::segment(1) == "pages" )): ?> class="active" <?php endif; ?>><a href="<?php echo e(url('pages')); ?>"><?php echo app('translator')->getFromJson('menu.pages'); ?></a></li>
                        <?php /* 
                        <li @if((Request::segment(2) == "menu_management" )) class="active" @endif><a href="{{ url('settings/menu_management') }}">@lang('menu.menu_management')</a></li>
                        */ ?>
                       
                    </ul>
                </li>
                <?php endif; // Entrust::can ?>
                
            <?php if (\Entrust::can('Profile')) : ?>
				<li <?php if((Request::segment(2) == "profile" )): ?> class="active" <?php endif; ?>>
                    <a href="<?php echo e(url('settings/profile')); ?>"><i class="fa fa-user"></i> <span class="nav-label"> <?php echo app('translator')->getFromJson('menu.profile'); ?> </span></a>
                </li>
				<?php endif; // Entrust::can ?>
                <li>
                    <a href="<?php echo e(url('logout')); ?>"><i class="fa fa-sign-out"></i> <span class="nav-label"> <?php echo app('translator')->getFromJson('menu.logout'); ?> </span></a>
                </li>
                
            </ul>

        </div>
    </nav>
