<!-- Left side column. contains the logo and sidebar -->

  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->

    <section class="sidebar">

      <!-- Sidebar user panel -->

      <div class="user-panel">

        <div class="pull-left image">

          <img src="<?php echo e(asset('/dist/img/test.png')); ?>" class="img-circle" alt="User Image">
 
        </div>

        <div class="pull-left info">

          <p><?php echo e(Auth::user()->name); ?></p>

          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>

        </div>

      </div>

      <!-- search form -->

      <form action="#" method="get" class="sidebar-form">

        <div class="input-group">

          <input type="text" name="q" class="form-control" placeholder="Search...">

          <span class="input-group-btn">

                <button type="submit" name="search" id="search-btn" class="btn btn-flat">

                  <i class="fa fa-search"></i>

                </button>

              </span>

        </div>

      </form>

      <!-- /.search form -->

      <!-- sidebar menu: : style can be found in sidebar.less -->

      <ul class="sidebar-menu" data-widget="tree">

        <li class="header">MAIN NAVIGATION</li>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dashboard')): ?>
            <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'home')?'active':''); ?>">
              <a href="<?php echo e(route('home')); ?>">
                <i class="fa fa-th"></i> <span>Dashboard</span>
              </a>
            </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('management')): ?>
            <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),['users','roles','permissions'])?'active menu-open':''); ?>treeview">
              <a href="#">
                <i class="fa fa-files-o"></i>
                <span>Management</span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                 
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-list')): ?>
                  <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'users')?'active':''); ?>"><a href="<?php echo e(route('users.index')); ?>"><i class="fa fa-circle-o"></i> Users</a></li>
                <?php endif; ?>

			          <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role-list')): ?>
                  <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'roles')?'active':''); ?>"><a href="<?php echo e(route('roles.index')); ?>"><i class="fa fa-circle-o"></i> Roles</a></li>
                <?php endif; ?>
                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('permission-list')): ?>
                  <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'permissions')?'active':''); ?>"><a href="<?php echo e(route('permissions.index')); ?>"><i class="fa fa-circle-o"></i> Permissions</a></li>
                <?php endif; ?>
              </ul>
            </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-list')): ?>
              <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'quotation')?'active':''); ?>">
                <a href="<?php echo e(route('quotations.index')); ?>">
                  <i class="fa fa-th"></i> <span>Quotation</span>
                </a>
              </li>
            <?php endif; ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('pi-list')): ?>
              <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'pi')?'active':''); ?>">
                <a href="<?php echo e(route('pi-index')); ?>">
                  <i class="fa fa-th"></i> <span>PI</span>
                </a>
              </li>
            <?php endif; ?>
          
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('company-list')): ?>
              <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'companies')?'active':''); ?>">
                <a href="<?php echo e(route('companies')); ?>">
                  <i class="fa fa-th"></i> <span>Company</span>
                </a>
              </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('invoice')): ?>
            <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),['export','invoice'])?'active menu-open':''); ?>treeview">
              <a href="#">
                <i class="fa fa-files-o"></i>
                <span>Invoice</span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('export-invoice')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'export')?'active':''); ?>"><a href="<?php echo e(route('exportFromttb')); ?>"><i class="fa fa-circle-o"></i> Export Invoice</a></li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('invoice-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'invoice')?'active':''); ?>"><a href="<?php echo e(route('invoice-index')); ?>"><i class="fa fa-circle-o"></i> Invoice Home</a></li>
              <?php endif; ?>
              </ul>
              </li>
              <?php endif; ?>
			   <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('credit-note')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'invoice-index')?'active':''); ?>" id="runcron">
                  <a href="<?php echo e(route('credit-note-index')); ?>" >
                    <i class="fa fa-th"></i> <span>Credit Note</span>
                  </a>
                </li>
              <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('cron-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'cron')?'active':''); ?>" id="runcron">
                  <a href="<?php echo e(route('cron-index')); ?>" >
                    <i class="fa fa-th"></i> <span>Cron</span>
                  </a>
                </li>
              <?php endif; ?>

              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('bank-detail-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'bank')?'active':''); ?>" id="runcron">
                  <a href="<?php echo e(route('bank_details-index')); ?>">
                    <i class="fa fa-th"></i> <span>Bank Details</span>
                  </a>
                </li>
              <?php endif; ?>


            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('items')): ?>
            <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),['iteams','attributes'])?'active menu-open':''); ?>treeview">
              <a href="#">
                <i class="fa fa-files-o"></i>
                <span>Iteams</span>
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'iteams')?'active':''); ?>"><a href="<?php echo e(route('iteams.index')); ?>"><i class="fa fa-circle-o"></i> Iteams List</a></li>
              <?php endif; ?>

              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('attribute-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'attributes')?'active':''); ?>"><a href="<?php echo e(route('attributes.index')); ?>"><i class="fa fa-circle-o"></i> Attributes</a></li>
              <?php endif; ?>
              
              </ul>
              </li>
                <?php endif; ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('barcode-print-log-list')): ?>
              <li>             

                <a href="<?php echo e(route('barcode_print_log_view')); ?>">    

                  <i class="fa fa-th"></i> <span>Barcode Print Log</span>     

                </a>          

              </li> 
              <?php endif; ?>

              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('add-product')): ?>
              <li>             

                <a href="<?php echo e(route('add_product')); ?>">    

                  <i class="fa fa-th"></i> <span>Add Product</span>     

                </a>          

              </li>
              <?php endif; ?> 

              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory-list')): ?>
			  <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),['dispatch','sattelment','inventory'])?'active menu-open':''); ?>treeview">
                <a href="<?php echo e(route('inventory')); ?>">                    
                <i class="fa fa-calendar"></i> <span>Inventory</span>
                  
					<span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>				  
              </a>
              <ul class="treeview-menu">
			  <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory-list')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'inventory')?'active':''); ?>"><a href="<?php echo e(route('inventory')); ?>"><i class="fa fa-circle-o"></i> View Inventory</a></li>
              <?php endif; ?>
        	<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dispatch-product')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'dispatch')?'active':''); ?>"><a href="<?php echo e(route('dispatch_product')); ?>"><i class="fa fa-circle-o"></i> Dispatch Product</a></li>
              <?php endif; ?>

        	<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('satelment-product')): ?>
                <li class="<?php echo e(Illuminate\Support\Str::contains(Route::currentRouteName(),'sattelment')?'active':''); ?>"><a href="<?php echo e(route('sattelment_product')); ?>"><i class="fa fa-circle-o"></i> Sattelment Product</a>
				
</li>
              <?php endif; ?>
              
              </ul>
              </li>
			  
             
              <?php endif; ?>

              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('print-barcode-list')): ?>
              <li>             

                <a href="<?php echo e(route('barcode_print')); ?>">    

                  <i class="fa fa-th"></i> <span>Print Barcode</span>     

                </a>
              </li>
              <?php endif; ?>

          </ul>
        </ul>
      </li>
    </section>
    <!-- /.sidebar -->
  </aside><?php /**PATH C:\xampp_8.2\htdocs\cpq8.2\resources\views/layouts/sidebar.blade.php ENDPATH**/ ?>