<?php $__env->startSection('index-content'); ?>
<style>
  .add-btn{
    width: auto !important;
    height: 31px !important;
    border-radius: 3px !important;
    line-height: 16px !important;
  }
   .table-responsive:nth-child(2) {
      width: 100%;
      height: 76vh;
  }
  .table-responsive:first-child{
      overflow-x: hidden;
  }
  /*th,
  td {
      white-space: nowrap;
  }*/
  table tr td:first-child {
      position: sticky;
      width: 50px;
      left: 0;
      background: #fff;
      color: #000;
      z-index: 9;
  }
  table tr td:nth-child(2) {
      position: sticky;
      left: 65px;
      background: #fff;
      color: #000;
      z-index: 9;
  }
  table tr th:first-child {
      position: sticky;
      width: 50px;
      left: 0;
      background: #c3e6cb !important;
      color: #000;
      z-index: 10;
  }
  table tr th:nth-child(2) {
      position: sticky;
      left: 65px;
      background: #c3e6cb !important;
      color: #000;
      z-index: 10 !important;
  }
   tr.table-success {
        position: sticky;
        left: 0;
        z-index: 10;
/*        background: #fff !important;*/
    }
    tr.table-success {
        top: 0px !important;
        position: sticky !important;
    }
    tr.table-warning {
         top: 36px !important;
         position: sticky !important;
    }
    tr.table-warning,
    tr.table-success{
         position: sticky;
         left: 0;
         z-index: 10;
         background: #fff !important;
    }
    .table-success,
    .table-success > td,
    .table-success > th {
        background-color: #c3e6cb;
    }
    .table-warning, .table-warning>td, .table-warning>th {
        background-color: #ffeeba !important;
    }
</style>
<div class="row px-3">
  <section role="main" class="content-body">
    <header class="page-header">
        <div class="row">
          <div class="col-lg-5">
            <h2>Inward Armsclamps</h2>  
          </div>
        
          <div class="col-lg-5">
            <ol class="breadcrumbs">
              <li>
                <a href="<?php echo e(url('index')); ?>">
                  <i class="fa fa-home"></i>
                </a>
              </li>
              <li><a href="<?php echo e('armsclamps_view'); ?>"><span class="active"><?php echo e($district->area_name??"Districts"); ?></span></a></li>
            </ol>
          </div>
          <div class="col-lg-2">
            <div class="add-btn-div">
               <?php if(session()->get('role')==0 ): ?>
            <a href="<?php echo e(url('armsclamps_store')); ?>" class="btn btn-primary add-btn" style="margin-right: 25px;">Add </a>
            <?php endif; ?>
          </div>
          </div>
      </div>
  </header>
      <!-- <header class="page-header">
          <h2>Inward Armsclamps</h2>
      </header>
      <div class="row">
        <div class="col-xs-12">
          <div class="right-wrapper">
            <ol class="breadcrumbs">
              <li>
                <a href="<?php echo e(url('index')); ?>">
                  <i class="fa fa-home"></i>
                </a>
              </li>
              <li><a href="<?php echo e('armsclamps_view'); ?>"><span class="active"><?php echo e($district->area_name??"Districts"); ?></span></a></li>
            </ol>
          </div>
        </div> -->
       <!--  <div class="col-xs-12 mt-3">
          <div>
            <button class="btn btn-primary" onclick="window.history.back()">Back</button>
          </div>
        </div> -->
      


      <!-- start: page -->
          <section class="panel pt-2">
           <!--  <header class="panel-heading mb-5">
              <h4 class="my-auto">Inward Armsclamps</h4> 
             <div class="add-btn-div">
               <?php if(session()->get('role')==0 ): ?>
            <a href="<?php echo e(url('armsclamps_store')); ?>" class="btn btn-primary add-btn">Add </a>
            <?php endif; ?>
          </div> -->
            
            </header>
            <!-- <div class="table-responsive"> -->
             <table class="table table-bordered table-striped mb-none mt-0" id="datatable-default">
               <thead>
                   <tr class="table-success">
                      <th>S.NO</th>
          <th class="text-left">District&nbsp;Names</th>
           <th>Arms Dia- 25-mm</th>
          <th>Arms Dia Inner- 32-mm</th>
            <th>Arms Dia inner- 40-mm</th>
          <th>Clams Set 25-mm</th>
            <th>Clams Set 40- 2-mm</th>
          <th>Clams Set 40- 3-mm</th>
          <th>1C *1.5 sq.mm</th>
         <!--  <th>Total</th> -->         
                   </tr>
               </thead>
               <tbody>
               <?php $tw1=0;$tw2=0;$tw3=0;$tw4=0;$tw5=0;$tw6=0;$tw7=0; $sum=0; $i=0;?>
           
            <?php $__currentLoopData = $area_dis; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

             <?php $i++;
             $counts=$list['org_arms_25']+$list['org_arms_32']+$list['org_arms_40']+$list['org_clamps_25']+$list['org_clamps_42']+$list['org_clamps_43']+$list['org_rcv_cbl']
             // $ex_buf_stock=$counts-$list['buffer_stk'];
             ?>
                <tr>
                  <td data-order="<?php echo e($i); ?>"><?php echo e($i); ?></td>
                    <td><?php if($list['jilla_id']!='EESL') { ?><a href="<?php echo e(url('armsclamps_invoice_list')); ?>?id=<?php echo e($list['area_district']['id']??'0'); ?>"><?php } ?><?php echo e($list['area_district']['area_name']??'EESL'); ?></a></td>
                     <td><?php echo e($list['org_arms_25']??'0'); ?></td>
                      <td><?php echo e($list['org_arms_32']??'0'); ?></td>
                       <td><?php echo e($list['org_arms_40']??'0'); ?></td>
                      <td><?php echo e($list['org_clamps_25']??'0'); ?></td>
                       <td><?php echo e($list['org_clamps_42']??'0'); ?></td>
                      <td><?php echo e($list['org_clamps_43']??'0'); ?></td>
                       <td><?php echo e($list['org_rcv_cbl']??'0'); ?></td>
                      <!-- <td><?php echo e($counts); ?></td> -->
     
                </tr>
        <?php 
       $tw1=$list['org_arms_25']+$tw1;
       $tw2=$list['org_arms_32']+$tw2;
       $tw3=$list['org_arms_40']+$tw3;
       $tw4=$list['org_clamps_25']+$tw4;
       $tw5=$list['org_clamps_42']+$tw5;
       $tw6=$list['org_clamps_43']+$tw6;
       $tw7=$list['org_rcv_cbl']+$tw7;
       $sum=$sum+$counts; ?>
                                
       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

     </tbody>
     <tfoot>
      <!--  <tr>
         <td data-order="<?php echo e($i); ?>"></td>
         <td><b>Total</b></td>
          <td><b><?php echo e($tw1??'0'); ?></b></td>
          <td><b><?php echo e($tw2??'0'); ?></b></td>
          <td><b><?php echo e($tw3??'0'); ?></b></td>
          <td><b><?php echo e($tw4??'0'); ?></b></td>
          <td><b><?php echo e($tw5??'0'); ?></b></td>
          <td><b><?php echo e($tw6??'0'); ?></b></td>
          <td><b><?php echo e($tw7??'0'); ?></b></td>
          <td><b><?php echo e($sum??'0'); ?></b></td>   
       </tr> -->



       <tr>
         <td data-order="<?php echo e($i); ?>"></td>
         <td><b>Total Transferred</b></td>
          <td><b><?php echo e($transfered_inventory[0]['arms_25']??'0'); ?></b></td>
                      <td><b><?php echo e($transfered_inventory[0]['arms_32']??'0'); ?></b></td>
                       <td><b><?php echo e($transfered_inventory[0]['arms_40']??'0'); ?></b></td>
                      <td><b><?php echo e($transfered_inventory[0]['clamps_25']??'0'); ?></b></td>
                       <td><b><?php echo e($transfered_inventory[0]['clamps_42']??'0'); ?></b></td>
                      <td><b><?php echo e($transfered_inventory[0]['clamps_43']??'0'); ?></b></td>
                       <td><b><?php echo e($transfered_inventory[0]['rcv_cbl']??'0'); ?></b></td> 
       </tr>

     <?php $ooriginal_25=0; $ooriginal_25=$tw1-$transfered_inventory[0]['arms_25'];
      $ooriginal_32=0; $ooriginal_32=$tw2-$transfered_inventory[0]['arms_32'];
      $ooriginal_40=0; $ooriginal_40=$tw3-$transfered_inventory[0]['arms_40']; 
      $ooriginal_c25=0; $ooriginal_c25=$tw4-$transfered_inventory[0]['clamps_25'];
      $ooriginal_c42=0; $ooriginal_c42=$tw5-$transfered_inventory[0]['clamps_42'];
      $ooriginal_c43=0; $ooriginal_c43=$tw6-$transfered_inventory[0]['clamps_43'];
      $ooriginal_cbl=0; $ooriginal_cbl=$tw7-$transfered_inventory[0]['rcv_cbl'];
      ?>
        <tr>
         <td data-order="<?php echo e($i); ?>"></td>
         <td><b>Original Total</b></td>
          <td><b><?php echo e($ooriginal_25??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_32??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_40??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_c25??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_c42??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_c43??'0'); ?></b></td>
          <td><b><?php echo e($ooriginal_cbl??'0'); ?></b></td>
         
       </tr>
               
               </tfoot>
           </table>
         <!-- </div> -->


         <table class="table table-bordered table-striped mb-none mt-0" id="datatable-default">
               <thead>
                 <tr  class="table-success">
                <th colspan="9">Quantity&nbsp;By&nbsp;Supplied by</th>
            </tr>
                   <tr class="table-warning">
                      <th>S.NO</th>
          <th class="text-left">Supplied&nbsp;Names</th>
           <th>Arms Dia- 25-mm</th>
          <th>Arms Dia Inner- 32-mm</th>
            <th>Arms Dia inner- 40-mm</th>
          <th>Clams Set 25-mm</th>
            <th>Clams Set 40- 2-mm</th>
          <th>Clams Set 40- 3-mm</th>
          <th>1C *1.5 sq.mm</th>
         <!--  <th>Total</th> -->         
                   </tr>
               </thead>
               <tbody>
               <?php $tw1=0;$tw2=0;$tw3=0;$tw4=0;$tw5=0;$tw6=0;$tw7=0; $sum=0; $i=0;?>
           
            <?php $__currentLoopData = $area_dis_supply; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

             <?php $i++;
             $counts=$list['org_arms_25']+$list['org_arms_32']+$list['org_arms_40']+$list['org_clamps_25']+$list['org_clamps_42']+$list['org_clamps_43']+$list['org_rcv_cbl']
             // $ex_buf_stock=$counts-$list['buffer_stk'];
             ?>
                <tr>
                  <td><?php echo e($i); ?></td>
                    <td><?php echo e($list['suplied_by']??'0'); ?></td>
                     <td><?php echo e($list['org_arms_25']??'0'); ?></td>
                      <td><?php echo e($list['org_arms_32']??'0'); ?></td>
                       <td><?php echo e($list['org_arms_40']??'0'); ?></td>
                      <td><?php echo e($list['org_clamps_25']??'0'); ?></td>
                       <td><?php echo e($list['org_clamps_42']??'0'); ?></td>
                      <td><?php echo e($list['org_clamps_43']??'0'); ?></td>
                       <td><?php echo e($list['org_rcv_cbl']??'0'); ?></td>
                      <!-- <td><?php echo e($counts); ?></td> -->
     
                </tr>
        <?php 
       $tw1=$list['org_arms_25']+$tw1;
       $tw2=$list['org_arms_32']+$tw2;
       $tw3=$list['org_arms_40']+$tw3;
       $tw4=$list['org_clamps_25']+$tw4;
       $tw5=$list['org_clamps_42']+$tw5;
       $tw6=$list['org_clamps_43']+$tw6;
       $tw7=$list['org_rcv_cbl']+$tw7;
       $sum=$sum+$counts; ?>
                                
       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
     </tbody>
     <tfoot>
       <tr>
         <td></td>
         <td><b>Total</b></td>
          <td><b><?php echo e($tw1??'0'); ?></b></td>
          <td><b><?php echo e($tw2??'0'); ?></b></td>
          <td><b><?php echo e($tw3??'0'); ?></b></td>
          <td><b><?php echo e($tw4??'0'); ?></b></td>
          <td><b><?php echo e($tw5??'0'); ?></b></td>
          <td><b><?php echo e($tw6??'0'); ?></b></td>
          <td><b><?php echo e($tw7??'0'); ?></b></td>
          <!-- <td><b><?php echo e($sum??'0'); ?></b></td>  -->    
       </tr>
               
               </tfoot>
           </table>

            <table class="table table-bordered table-striped mb-none mt-0" id="datatable-default">
               <thead>
                 <tr  class="table-success">
                <th colspan="9">Transfer Quantity&nbsp;By&nbsp;Supplied by</th>
            </tr>
                   <tr class="table-warning">
                      <th>S.NO</th>
          <th class="text-left">Supplied&nbsp;Names</th>
           <th>Arms Dia- 25-mm</th>
          <th>Arms Dia Inner- 32-mm</th>
            <th>Arms Dia inner- 40-mm</th>
          <th>Clams Set 25-mm</th>
            <th>Clams Set 40- 2-mm</th>
          <th>Clams Set 40- 3-mm</th>
          <th>1C *1.5 sq.mm</th>
         <!--  <th>Total</th> -->         
                   </tr>
               </thead>
               <tbody>
               <?php $tw1=0;$tw2=0;$tw3=0;$tw4=0;$tw5=0;$tw6=0;$tw7=0; $sum=0; $i=0;?>
           
            <?php $__currentLoopData = $transfered_supplies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

             <?php $i++;
             $counts=$list['arms_25']+$list['arms_32']+$list['arms_40']+$list['clamps_25']+$list['clamps_42']+$list['clamps_43']+$list['rcv_cbl']
             // $ex_buf_stock=$counts-$list['buffer_stk'];
             ?>
                <tr>
                  <td><?php echo e($i); ?></td>
                    <td><?php echo e($list['suplied_by']??'0'); ?></td>
                     <td><?php echo e($list['arms_25']??'0'); ?></td>
                      <td><?php echo e($list['arms_32']??'0'); ?></td>
                       <td><?php echo e($list['arms_40']??'0'); ?></td>
                      <td><?php echo e($list['clamps_25']??'0'); ?></td>
                       <td><?php echo e($list['clamps_42']??'0'); ?></td>
                      <td><?php echo e($list['clamps_43']??'0'); ?></td>
                       <td><?php echo e($list['rcv_cbl']??'0'); ?></td>
                      <!-- <td><?php echo e($counts); ?></td> -->
     
                </tr>
        <?php 
       $tw1=$list['arms_25']+$tw1;
       $tw2=$list['arms_32']+$tw2;
       $tw3=$list['arms_40']+$tw3;
       $tw4=$list['clamps_25']+$tw4;
       $tw5=$list['clamps_42']+$tw5;
       $tw6=$list['clamps_43']+$tw6;
       $tw7=$list['rcv_cbl']+$tw7;
       $sum=$sum+$counts; ?>
                                
       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
     </tbody><tfoot>
       <tr>
         <td></td>
         <td><b>Total</b></td>
          <td><b><?php echo e($tw1??'0'); ?></b></td>
          <td><b><?php echo e($tw2??'0'); ?></b></td>
          <td><b><?php echo e($tw3??'0'); ?></b></td>
          <td><b><?php echo e($tw4??'0'); ?></b></td>
          <td><b><?php echo e($tw5??'0'); ?></b></td>
          <td><b><?php echo e($tw6??'0'); ?></b></td>
          <td><b><?php echo e($tw7??'0'); ?></b></td>
          <!-- <td><b><?php echo e($sum??'0'); ?></b></td>  -->    
       </tr>
               
               </tfoot>
           </table>
       </section>
   </section>
 </div>

 
     <?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/neefc25/public_html/tgredco.fovea.in/resources/views/backend/armsclamps_view.blade.php ENDPATH**/ ?>