<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">
      
      <?php if(Auth::user()->name == 'admin'): ?>
        <img src="<?php echo e(asset('dist/img/admin.png')); ?>" class="img-circle" alt="User Image">
        <?php else: ?>
        <img src="<?php echo e(asset('dist/img/user.png')); ?>" class="img-circle" alt="User Image">
      <?php endif; ?>
      </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 -->
    
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu" data-widget="tree">
      <li class="header">Dashboard</li>


<?php if(Auth::user()->userpermission(2) || Auth::user()->userpermission(15)): ?>
            <li class="treeview">
        <a href="#">
          <i class="fa fa-dashboard"></i> <span>Masters</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <?php if(Auth::user()->userpermission(2)): ?>
          <li><a href="<?php echo e(route('customer_type.create')); ?>"><i class="fa fa-circle-o"></i> Customer Group</a></li>
          <li><a href="<?php echo e(route('location.master')); ?>"><i class="fa fa-circle-o"></i> Location Master </a></li>
          <li><a href="<?php echo e(route('unit_master.create')); ?>"><i class="fa fa-circle-o"></i> Unit </a></li>
          <li><a href="<?php echo e(route('standard_master.index')); ?>"><i class="fa fa-circle-o"></i>Grade</a></li>
          <li><a href="<?php echo e(route('grade_master.create')); ?>"><i class="fa fa-circle-o"></i>Packing</a></li>
          <li><a href="<?php echo e(route('category.master.index')); ?>"><i class="fa fa-circle-o"></i>Category</a></li>
          <li><a href="<?php echo e(route('group_master.index')); ?>"><i class="fa fa-circle-o"></i> Group</a></li>
          <li><a href="<?php echo e(route('subgroup.index')); ?>"><i class="fa fa-circle-o"></i> Sub Group</a></li>
          <li><a href="<?php echo e(route('tag_master.index')); ?>"><i class="fa fa-circle-o"></i> Tag Master</a></li>
          <?php endif; ?>
          <?php if(Auth::user()->userpermission(15)): ?>
          <li><a href="<?php echo e(route('products.index')); ?>"><i class="fa fa-circle-o"></i> Product Master</a></li>
          <?php endif; ?>
          <?php if(Auth::user()->userpermission(2)): ?>
          <li><a href="<?php echo e(route('manage.config.index')); ?>"><i class="fa fa-circle-o"></i> Configuration</a></li>
         <?php endif; ?>
         </ul>
        </li>
     <?php endif; ?>
     <?php if(Auth::user()->userpermission(1)): ?>
      <li class="treeview">
        <a href="#">
          <i class="fa fa-dashboard"></i> <span>Admin</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">

          <li><a href="<?php echo e(route('role.index')); ?>"><i class="fa fa-circle-o"></i> Manage Role</a></li>
          <li><a href="<?php echo e(route('user.index')); ?>"><i class="fa fa-circle-o"></i> Manage User</a></li>

          <li><a href="<?php echo e(route('customer.list')); ?>"><i class="fa fa-circle-o"></i> Customer Master</a></li>
           <li><a href="<?php echo e(route('notification.index')); ?>"><i class="fa fa-circle-o"></i>Notification Manager</a></li>
          <li><a href="<?php echo e(route('mr.report.index')); ?>"><i class="fa fa-circle-o"></i> MR List </a></li>
         </ul>
        </li>
      <?php endif; ?>
  <?php if(Auth::user()->userpermission(4) || Auth::user()->userpermission(8)|| Auth::user()->userpermission(5)|| Auth::user()->userpermission(13)|| Auth::user()->userpermission(14)): ?>
         <li class="treeview">
        <a href="#">
          <i class="fa fa-dashboard"></i> <span>Order Module</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">


         <li><a href="<?php echo e(route('material_request.list')); ?>"><i class="fa fa-circle-o"></i> Order List</a></li>
         <li><a href="<?php echo e(route('cash.sales.order.list')); ?>"><i class="fa fa-circle-o"></i> Cash Sales Order List</a></li>

         <li><a href="<?php echo e(route('credit.sales.order.list')); ?>"><i class="fa fa-circle-o"></i> Credit Sales Order List</a></li>
         <li><a href="<?php echo e(route('customer.sales.order.list')); ?>"><i class="fa fa-circle-o"></i> Customer Pre-Order List</a></li>
         <li><a href="<?php echo e(route('pos.credit.sale.orders')); ?>?print=0"><i class="fa fa-circle-o"></i> CREDIT ORDERS List</a></li>
         <li><a href="<?php echo e(route('pos.cash.sale.orders')); ?>?print=0&user_id="><i class="fa fa-circle-o"></i> CASH ORDERS List</a></li>
         </ul>
        </li>
<?php endif; ?>

          <?php if(Auth::user()->userpermission(7)): ?>
          <li><a href="<?php echo e(route('notification.show')); ?>"><i class="fa fa-bell"></i> Notifications </a></li>
           <?php endif; ?>

  <?php if(Auth::user()->userpermission(10)): ?>
      <li class="treeview">
        <a href="#">
          <i class="fa fa-dashboard"></i> <span>Reports</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        
         <li><a href="<?php echo e(route('cash.credit.report.index')); ?>"><i class="fa fa-circle-o"></i>Order Report</a></li>
         <li><a href="<?php echo e(route('material.request.report.index')); ?>"><i class="fa fa-circle-o"></i> Location Wise Product Report </a></li>
         <li><a href="<?php echo e(route('mr.customerwise.report.index')); ?>"><i class="fa fa-circle-o"></i>MR Customer Wise Report</a></li>
         <li><a href="<?php echo e(route('order.history.report')); ?>"><i class="fa fa-circle-o"></i>MR History Report</a></li>
         </ul>
        </li>
<?php endif; ?>
      </ul>
  </section>
  <!-- /.sidebar -->
</aside>
<?php /**PATH /home/suholcrm/public_html/so/resources/views/leftside.blade.php ENDPATH**/ ?>