<?php $__env->startSection('index-content'); ?>
<style>
  .table-responsive {
        width: 100%;
        height: 75vh;
    }
    table tr td{
      vertical-align: middle !important;
    }
    table .tr1 td:first-child {
        position: sticky;
        width: 50px;
        left: 0;
        background: #fff;
        color: #000;
        z-index: 9;
    }
    table .tr1 td:nth-child(2) {
        position: sticky;
        left: 50px;
        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: 50px;
        /*   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;
    }
    .table-success,
    .table-success > td,
    .table-success > th {
        background-color: #c3e6cb !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>PR Resolution Gram Wise Report</h2>  
      </div>
    
      <div class="col-lg-5">
        <ol class="breadcrumbs">
              <li>
                <a href="/">
                  <i class="fa fa-home"></i>
                </a>

              </li>
              
              <li> <a href="<?php echo e(url('pr_distict_view')); ?>">
                <span><?php echo e($district->parent_details->area_name); ?></span> 
              </a>
            </li>
            <li> 
                <a href="<?php echo e(url('mandal_pr_list')); ?>?id=<?php echo e($district->parent_details->id); ?>">
                <span><?php echo e($district->area_name); ?></span>
              </a>
            </li>
              
            </ol>
      </div>
      <div class="col-lg-2">
        <?php if(!Session::has('dashboardurl')): ?> 
              <div class="add-btn-div">
                <a href="<?php echo e(url('add_prresolution')); ?>" class="btn btn-primary add-btn" style="margin-right: 25px;">Add </a>
              </div>
               <?php endif; ?>
               <button class="btn btn-primary back-btn" onclick="window.history.back()" style="margin-right:90px;">Back</button>
    </div>
  </div>
  </header>
      <!-- <header class="page-header">
        <h2>PR Resolution Gram Wise Report</h2>
      </header>
      <div class="row">
        <div class="col-xs-12">
          <div class="right-wrapper">
            <ol class="breadcrumbs">
              <li>
                <a href="/">
                  <i class="fa fa-home"></i>
                </a>

              </li>
              
              <li> <a href="<?php echo e(url('pr_distict_view')); ?>">
                <span><?php echo e($district->parent_details->area_name); ?></span> 
              </a>
            </li>
                <li> 
                    <a href="<?php echo e(url('mandal_pr_list')); ?>?id=<?php echo e($district->parent_details->id); ?>">
                    <span><?php echo e($district->area_name); ?></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>
          </div> -->

        <!-- start: page -->
        <section class="panel">
          <!-- <header class="panel-heading mb-5">
            <h4 class="my-0">PR Resolution Gram Wise Report</h4>
            <?php if(!Session::has('dashboardurl')): ?> 
              <div class="add-btn-div">
                <a href="<?php echo e(url('add_prresolution')); ?>" class="btn btn-primary add-btn">Add </a>
              </div>
               <?php endif; ?>

        </header> -->
        <div class="col-12 px-2">
          <table class="table table-bordered table-striped mb-none mt-0" id="datatable-default">
           <thead>
             <tr class="table-success">
               <th>S.NO</th>
               <th>Gram Name</th>
               <th>PR Resolution Count</th>
               <th>Total Lights Count</th>
               <th>18 W Count</th>
               <th>35 W Count</th>
               <th>70 W Count</th>
               <th>110 W Count</th>
               <th>190 W Count</th>

             </tr>
           </thead>
           <tbody>
             <?php $i=0;?>
            <?php $__currentLoopData = $gram_pr_list; $__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('gram_approve_list')); ?>?id=<?php echo e($list['area_gram']['id']); ?>"><?php echo e($list['area_gram']['area_name']); ?></a></td>
              <td><?php echo e($list['count']); ?></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']); ?></td>
              <td><?php echo e($list['190w']); ?></td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

          </tbody>
        </table>
        <br>
      </div>
    </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/pr_resolution/pr_gram_list.blade.php ENDPATH**/ ?>