
<?php $__env->startSection('content'); ?>
<style>
    table {
      width: 100%;
      height: 50px; /* set a height so vertical centering is visible */
      border-collapse: collapse;
    }
    td {
      text-align: center;
      vertical-align: middle;
      border: 1px solid #ccc;
    }
  </style>
 
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-12">
			<nav aria-label="breadcrumb">
			  <ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="<?php echo e(route('general_elections.index')); ?>">General Elections</a></li>
				<li class="breadcrumb-item"><a href="<?php echo e(route('nagpur_muncipalelections.show',$general_election)); ?>">Nagpur Muncipal Elections</a></li>
				<li class="breadcrumb-item active" aria-current="page">Poling station wise voter list wards</li>
			  </ol>
			</nav>
            <div class="card">
                <div class="card-header">
					<div class="d-flex justify-content-between align-items-center">
						<div>
							<?php echo e(__('Poling station wise voter list')); ?> of <?php echo e($general_election->title_en); ?>

						</div>
						<div>
							<a style="text-decoration:none;" href="<?php echo e(route('poling_stationwise_voterlists.create',$general_election)); ?>">Add</a>
						</div>
					</div>
				</div>

                <div class="card-body p-5">
				
				<div class="row">
					<?php $__currentLoopData = $poling_stationwise_voterlists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $poling_stationwise_voterlist): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					  <div class="col-sm-2 mb-3 mb-sm-0">
						<div class="card text-center">
						  <div class="card-body">
						  
							<div class="opacity-100">
								<a style="text-decoration:none;font-size:18px;font-weight:bold;" href="<?php echo e(route('wardwise_docs.pswvl_show',$poling_stationwise_voterlist)); ?>">
									<?php if($currentLocale=='en'): ?>
										<?php echo e($poling_stationwise_voterlist->ward_en); ?>

									<?php else: ?>
										<?php echo e($poling_stationwise_voterlist->ward_mr); ?>	
									<?php endif; ?>
								</a>

								<div class="d-flex justify-content-end align-items-center" >
									<div>
										<a href="<?php echo e(route('poling_stationwise_voterlists.edit',$poling_stationwise_voterlist)); ?>"><i class="fa-regular fa-edit"></i></a> 
									</div>				
									<div>				
										<form action="<?php echo e(route('poling_stationwise_voterlists.destroy', $poling_stationwise_voterlist)); ?>" method="POST" style="display:inline;">
											<?php echo csrf_field(); ?>
											<!-- <?php echo method_field('DELETE'); ?> -->
											<button style="border:none" type="submit" ><i class="fa fa-trash-o text-danger"></i></button>
										</form>
									</div>
								</div>
							</div>	  
							
						  </div>
						</div>
					  </div>  
					  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</div>		
				
                </div>
            </div>
        </div>
    </div>
</div>
<script>
function myFunction() {
  var input, filter, table, tr, td, i, txtValue;
  input = document.getElementById("myInput");
  filter = input.value.toUpperCase();
  table = document.getElementById("myTable");
  tr = table.getElementsByTagName("tr");
  for (i = 0; i < tr.length; i++) {
    td = tr[i].getElementsByTagName("td")[0];
    if (td) {
      txtValue = td.textContent || td.innerText;
      if (txtValue.toUpperCase().indexOf(filter) > -1) {
        tr[i].style.display = "";
      } else {
        tr[i].style.display = "none";
      }
    }       
  }
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\nmc-elections\resources\views/poling_stationwise_voterlists/index.blade.php ENDPATH**/ ?>