<?php $__env->startSection('index-content'); ?>
<style>
    .table-responsive {
        width: 100%;
        height: 75vh;
    }
    /*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: #fff;*/
        color: #000;
        z-index: 10;
    }
    table tr th:nth-child(2) {
        position: sticky;
        left: 65px;
/*        background: #fff !important;*/
        color: #000;
        z-index: 10;
    }
    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 !important;
    }
    .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 pr-4">
      <div class="col-lg-5">
        <h2>Preliminary Survey District Wise Report</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><span class="active">District</span></li>
            </ol>
      </div>
      <div class="col-lg-2 pr-4">
        <div class="add-btn-div">
              <a href="<?php echo e(url('add_preliminary_survey')); ?>" class="btn btn-primary add-btn" >Add </a>
            </div>
          <?php if(session('success')): ?>
            <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>
      </div>
    </div>
  </header>
      <!-- <header class="page-header">
          <h2>Preliminary Survey District Wise Report</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><span class="active">District</span></li>
            </ol>
          </div>
        </div>
      </div> -->

  <!-- start: page -->
      <section class="panel pt-3">
          <!-- <header class="panel-heading mb-5">
          <h4 class="my-0">Preliminary Survey District Wise Report</h4> 

         
            <div class="add-btn-div">
              <a href="<?php echo e(url('add_preliminary_survey')); ?>" class="btn btn-primary add-btn">Add </a>
            </div>
          <?php if(session('success')): ?>
            <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>
              
          </header> -->
          <div class="col-12 px-2">
            <!-- <div class="table-responsive"> -->
           <table class="table table-bordered table-striped mb-4 pb-3 mt-0 " id="datatable-default">
             <thead>
              <tr class="table-success"> 
                 <th></th>
                 <th></th>
                 <th></th>
                  <th colspan="4">Pole Type</th>
                  <th></th>
                  <th colspan="4">Required type of LED lights</th>
              </tr>
                 <tr class="table-warning"> 
                     <th>S.NO</th>
                     <th>District Name</th>
                     <th>No of Poles</th>
                     <th>8.1mts</th>
                     <th>9.1mts</th>
                     <th>12mts</th>
                     <th>Poles without 3rd Wire</th>
                     <th>Present Lights Available in GP </th>
                     <th>18 W </th>
                     <th>35 W </th>
                     <th>70 W </th>
                     <th>Others </th>
                     
                 </tr>
             </thead>
             <tbody>
              <?php $i=0;?>
              <?php $__currentLoopData = $ps_district_wise; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
               <?php $i++;?>
              <tr>
                   <td><?php echo e($i); ?></td>
                  <td><a href="<?php echo e(url('mandal_ps_list')); ?>?id=<?php echo e($list['area_district']['id']); ?>"><?php echo e($list['area_district']['area_name']); ?></a></td>

                   <td><?php echo e($list['pole8mts']+$list['pole9mts']+$list['pole12mts']+$list['pole_withoutwire']); ?></td>
                  <td><?php echo e($list['pole8mts']); ?></td>
                  <td><?php echo e($list['pole9mts']); ?></td>
                  <td><?php echo e($list['pole12mts']); ?></td>
                  <td><?php echo e($list['pole_withoutwire']); ?></td>
                 
                  <td><?php echo e($list['18w']+$list['35w']+$list['70w']+$list['110w']+$list['190w']); ?></td>
                  <td><?php echo e($list['18w']); ?></td>
                  <td><?php echo e($list['35w']); ?></td>
                  <td><?php echo e($list['70w']); ?></td>
                  <td><?php echo e($list['110w']+$list['190w']); ?></td>
                 
              </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
             
             </tbody>
         </table>
       <!-- </div> -->
       </div>
       <br>
   </section>
</section>
 <?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/preliminary_survey/ps_district_wise.blade.php ENDPATH**/ ?>