
<?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',$wardwise_election_result->general_election)); ?>">Nagpur Muncipal Elections</a></li>
				<li class="breadcrumb-item"><a href="<?php echo e(route('wardwise_election_results.index',$wardwise_election_result->general_election)); ?>">Wardwise Election Results wards</a></li>
				<li class="breadcrumb-item active" aria-current="page">Wardwise Election Result Docs</li>	
			  </ol>
			</nav>
            <div class="card">
                <div class="card-header">
					<div class="d-flex justify-content-between align-items-center">
						<div>Files</div>
						<div>
						</div>
					</div>
				</div>

                <div class="card-body p-5">
				
				
				<div class="row row-cols-1 row-cols-md-4 g-4">
					<?php $__currentLoopData = $wardwise_docs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $wardwise_doc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					  <div class="col">
						<div class="card h-100">
						  <?php if($wardwise_doc->file_ext=='pdf'): ?>
								<iframe src="<?php echo e(asset('storage/'.$wardwise_doc->filepath)); ?>" height="200px;" ></iframe>
						  <?php else: ?>
								<img src="<?php echo e(asset('storage/'.$wardwise_doc->filepath)); ?>" class="card-img-top" alt="..." height="200px;">
						  <?php endif; ?>						  
						  <div class="card-footer">
							<small class="text-body-secondary d-flex justify-content-end">
								<!--
								<a href="<?php echo e(route('wardwise_docs.edit',$wardwise_doc)); ?>"><i class="fa-regular fa-edit"></i></a> 
								-->				
								<form action="<?php echo e(route('wardwise_docs.destroy', $wardwise_doc)); ?>" 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>
							
							</small>
						  </div>
						</div>
					  </div>					  
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</div>
				
                </div>
            </div>
        </div>
    </div>
</div>

<?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/wardwise_docs/wwer_show.blade.php ENDPATH**/ ?>