
<?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">Nagpur Muncipal Corporation 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(__('List of Nagpur Muncipal Corporation Files')); ?> of <?php echo e($general_election->title_en); ?>

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

                <div class="card-body">				
				
					<div class="row p-4">
						<?php $__currentLoopData = $muncipal_corporations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $muncipal_corporation): $__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.mc_show',$muncipal_corporation)); ?>">
											<?php if($currentLocale=='en'): ?>
												<?php echo e($muncipal_corporation->ward_en); ?>

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

										<div class="d-flex justify-content-end align-items-center" >
											<div>
												<a href="<?php echo e(route('muncipal_corporations.edit',$muncipal_corporation)); ?>"><i class="fa-regular fa-edit"></i></a> 
											</div>				
											<div>				
												<form action="<?php echo e(route('muncipal_corporations.destroy', $muncipal_corporation)); ?>" 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/muncipal_corporations/index.blade.php ENDPATH**/ ?>