<?php require_once('../auth/auth.php'); 
$debitor_id=mysqli_fetch_assoc(mysqli_query($conn,"SELECT ac_g_catid FROM ac_sub_g_category WHERE  coid='$coid' AND g_type='su-deb' LIMIT 1 "))['ac_g_catid'];
?>
  <section class="content pb-1" >
    <ul class="nav nav-pills" style="background-color: honeydew;padding: 2px 0;border-bottom:1px solid #dee2e6;margin-left:2px;">
       <?php if(per('view_customer')==1) {?>
        <li class="nav-item"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab" onclick="pagecall('../customer/view_all_customer.php?debitor_id=<?php echo $debitor_id;?>','#cusview');"><i class="fa fa-fw fa-calculator"></i> <?php echo language(34); ?>  </a></li>|
      <?php  } if(per('cus_reciv_list')==1){ ?>
        <li class="nav-item" onclick="pagecall('../customer/receivable_list.php?ac_type='+'su-deb'+'&debitor_id=<?php echo $debitor_id ?>','#cusview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-fw fa-calculator"></i>  <?php echo language(35); ?>  </a></li>|
      <?php  } if(per('cus_route')==1){ ?>
        <li class="nav-item" onclick="pagecall('../customer/route_index.php','#cusview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-fw fa-calculator"></i> <?php echo language(191);?>  </a></li>|
      <?php } if(per('cus_setting')==1){ ?>
        <li class="nav-item" onclick="pagecall('../customer/setting.php','#cusview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-eye-slash"></i>  <?php echo language(36); ?> </a></li>|
      <?php } if(per('cus_import')==1){ ?>
        <li class="nav-item" onclick="pagecall('../customer/csv_index.php?ac_type='+'su-deb'+'&gcatid=<?php echo $debitor_id ?>','#cusview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-upload"></i> <?php echo language(37); ?> </a></li>|
      <?php } ?>
    </ul>
  </section>

  <section class="content">
     <div id="cusview"></div>
  </section>

