<?php require_once('../auth/auth.php'); 
$creditor_id=mysqli_fetch_assoc(mysqli_query($conn,"SELECT ac_g_catid FROM ac_sub_g_category WHERE   coid='$coid' AND g_type='su-cre' 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_supplier')==1){ ?>
          <li class="nav-item"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab" onclick="pagecall('../supplier/view_all_supplier.php?ac_type='+'su-cre'+'&creditor_id=<?php echo $creditor_id ?>','#supplierview');"><i class="fa fa-fw fa-calculator"></i><?php echo language(39);?>  </a></li>|
        <?php } if(per('payable_list')==1){ ?> 
          <li class="nav-item" onclick="pagecall('../supplier/payable_list.php?ac_type='+'su-cre'+'&creditor_id=<?php echo $creditor_id ?>','#supplierview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-fw fa-calculator"></i> <?php echo language(38);?>  </a></li>|
         <?php } if(per('sup_setting')==1){ ?>
              <li class="nav-item" onclick="pagecall('../supplier/setting.php','#supplierview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-eye-slash"></i> <?php echo language(40);?> </a></li>|
         <?php } if(per('sup_import')==1){ ?>
          <li class="nav-item" onclick="pagecall('../customer/csv_index.php?ac_type='+'su-cre'+'&gcatid=<?php echo $creditor_id ?>','#supplierview');"><a style="padding: 0px 8px;" class="nav-link" href="#" data-toggle="tab"><i class="fa fa-fw fa-calculator"></i> <?php echo language(41);?> </a></li>|
        <?php }  ?>
      </ul>
  </section>
  <section class="content">
     <div id="supplierview"></div>
  </section>

