<?php $__env->startSection('index-content'); ?>
<style>
 .table-responsive{
    width: 100%;
    height: 75vh;
  }
  table tr td{
  	vertical-align: middle !important;
  }
  /*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: 56px;
        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: 56px;
/*        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>
<?php
function convertToUnicodeNumber($input) {
    
    $standard_numsets = array("0","1","2","3","4","5","6","7","8","9");
    $devanagari_numsets = array("०","१","२","३","४","५","६","७","८","९");
    
    return str_replace($standard_numsets, $devanagari_numsets, $input);
  }
?>

				<section role="main" class="content-body">
					<header class="page-header">
					    <div class="row">
					      <div class="col-lg-5">
					        <h2>List Of Panchayat</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">List Of Panchayat</span></li>
								</ol>
					      </div>
					  </header>
					<!-- <header class="page-header">
						<h2>List Of Panchayat</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">List Of Panchayat</span></li>
								</ol>
							</div>
						</div>
					</div> -->
					
					<section class="panel">
							<!-- <header class="panel-heading position-relative">
								<h4 class="my-0">List Of Panchayat</h4>
								<div class="panel-actions">
									<a href="#" class="fa fa-caret-down"></a>
									<a href="#" class="fa fa-times"></a>
								</div>
						
								


							</header> -->
							<form action="<?php echo e(url('abstractreport_view')); ?>" method="get">
							    <?php echo csrf_field(); ?>
							<div class="panel-body pt-0">
								
							    <div class="row ">
                                    <div class="col-sm-4 px-2">
                                        <h4>District Name</h4>
                                        <select name="jillase" class="w-100 h40" id="jilla_id">
                                          <option value="">District Name</option>
                                            
                                            <?php $__currentLoopData = $jilla; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option <?php if($request->jillase==$j->id): ?> selected <?php endif; ?> value="<?php echo e($j->id); ?>"><?php echo e($j->area_name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                          </select>
                                          
                                    </div>
                                    <div class="col-sm-4 px-2">
                                        <h4>Mandal Name</h4>
                                        <select name="talukase" class="w-100 h40" id="taluka">
                                          <option value="">Mandal Name</option> 
                                           <?php $__currentLoopData = $taluka; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option <?php if($request->talukase==$j->id): ?> selected <?php endif; ?> value="<?php echo e($j->id); ?>"><?php echo e($j->area_name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
                                        </select>
                                    </div>
                                    <div class="col-sm-2">
                                    	<div>
                                         <input type="submit" class="btn btn-success mt42" value="Submit" id="surveyfilter">
                                     </div>
                                          
                                    </div> 
                                    
                                </div>
                               
                                
							</div>
							</form>
							<div class="col-12">
								<div class="panel-body px-0">
								
								<table class="table table-bordered table-striped mb-none mt-0" id="datatable-default">
									<thead>
										<tr class="table-success">
											<th>S.No</th>
											 <th>District Name</th>
											<th>Mandal Name</th>
											<th>Panchayat Name</th> 
											<th>Code</th>
											<!-- <th>Status</th>
											<th>Edit</th> -->
											<th>Action</th>
										
										</tr>
									</thead>
									<tbody>
										<?php  $count=0; ?>
									<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<?php $count++; ?>
									<tr class="gradeX">
										
												<td><?php echo e($count); ?></td>
												<td><?php echo e($a->jilla); ?></td>
												<td><?php echo e($a->taluka); ?></td> 
												<td><?php echo e($a->gram); ?></td>
												<td><?php echo e($a->code); ?></td>
												
												<!-- <?php 
											$s=$a->gstatus;
											if($s=='active')
											{
											?>
											<td><a  class="btn btn-success statuschk" id="statuschk" data-id="<?php echo e($a->gid); ?>"><?php echo e($a->gstatus); ?></a></td>
											<?php
											}else{
											?>
											<td><a  class="btn btn-warning statuschk" id="statuschk" data-id="<?php echo e($a->gid); ?>"><?php echo e($a->gstatus); ?></a></td>
											<?php
											}
											?>
											
											<td><button class="btn btn-primary"><a href="<?php echo e(url('gramedit/'.$a->gid)); ?>?title=abstract" style="text-decoration:none;color:white;">Edit</a></button></td> -->

                                            
											<td><button class="btn btn-primary"><a target="_blank" href="<?php echo e(url('abstractreport/'.$a->gid)); ?>?phase_no=<?php echo e($request->phase_no); ?>" style="text-decoration:none;color:white;">Abstract Report</a></button></td>
											
									</tr>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									</tbody>
								</table>
							
							</div>
							</div>
						</section>
				</section>
				<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
    			<script>
				$(document).ready(function(){
					$("#jillaid").on("change",function(){
						var id=$(this).val();
						$.ajax({
							url:'/jillaid/'+id,
							method:'get',
							success:function(data)
							{
								//var test=data.split("::");
								$("#aname").html(data);
								
							},	
							error:function(data)
							{
								$("#aname").html("");
							}
						});
					});


					$("body").on("click",".statuschk",function(){
						 var id=$(this).data('id');
						 var path=$(this);
						  //alert(id); 
						$.ajax({
							url:'<?php echo e(url("statuschkgram")); ?>/'+id,
							method:'get',
							 dataType:"json",
							success:function(data)
							{
                               path.text(data.status);
                               path.attr('class',data.class_name);
								//alert(data.status);
							},	
							error:function(data)
							{
								 alert(data);
							}
						});
					});
					
				});	
				</script>
	<?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/abstractreport_view.blade.php ENDPATH**/ ?>