@extends('backend.header')
@section('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>

  <section role="main" class="content-body">
    
    <header class="page-header">
    <div class="row">
      <div class="col-lg-5">
        <h2>PR Resolution District Wise Report</h2>  
      </div>
    
      <div class="col-lg-5">
        <ol class="breadcrumbs">
            <li>
              <a href="{{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">
        @if(!Session::has('dashboardurl'))
            <div class="add-btn-div">
              <a href="{{url('add_prresolution')}}" class="btn btn-primary add-btn" style="margin-right: 25px;">Add </a>
            </div>
            @endif
      </div>
    </div>
  </header>
      <!-- <header class="page-header">
          <h2>PR Resolution District Wise Report</h2>
      </header>
      <div class="row">
        <div class="col-xs-12">
          <div class="right-wrapper">
            <ol class="breadcrumbs">
              <li>
                <a href="{{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">
          <!-- <header class="panel-heading mb-5">
          <h4 class="my-0">PR Resolution District Wise Report</h4> 

          @if(!Session::has('dashboardurl'))
            <div class="add-btn-div">
              <a href="{{url('add_prresolution')}}" class="btn btn-primary add-btn">Add </a>
            </div>
            @endif
              
          </header> -->
          <div class="col-12 px-4">
           <table class="table table-bordered table-striped mb-4 pb-3 mt-0 " id="datatable-default">
             <thead>
                 <tr class="table-success"> 
                      <th>S.NO</th>
                     <th>District 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;?>
              @foreach($pr_district_wise as $list)
               <?php $i++;?>
              <tr >
                   <td>{{$i}}</td>
                  <td><a href="{{url('mandal_pr_list')}}?id={{$list['area_district']['id']}}">{{$list['area_district']['area_name']}}</a></td>
                  <td>{{$list['count']}}</td>
                  <td>{{$list['18w']+$list['35w']+$list['70w']+$list['110w']+$list['190w']}}</td>
                  <td>{{$list['18w']}}</td>
                  <td>{{$list['35w']}}</td>
                  <td>{{$list['70w']}}</td>
                  <td>{{$list['110w']}}</td>
                  <td>{{$list['190w']}}</td>
              </tr>
              @endforeach
             
             </tbody>
         </table>
       </div>
       <br>
   </section>
</section>
 @stop
