@extends('layouts.election_app')
@section('content')

	<div class="container-fluid text-center" style="margin-top:2%;">
	 

	 <div class="d-flex justify-content-center " style="padding:5px;margin-left:30px;margin-right:30px;">
		<div class="col-3"  style="">
		
			@include('layouts.left_menu',['general_election'=>$wardwise_doc->poling_stationwise_voterlist->general_election,'nomination_docs'=>$nomination_docs])
			
			
			</div>


		<!-- accordian end -->

		</div>
		<div class="col-9"  style="border:1px solid lightgrey;margin:5px;border-radius:3px;">
			<ul style="list-style:none; padding: 0; margin: 0;" >
		
				
				<li>	
					<h1 class="text-center p-3 text-info-emphasis">{{__('labels.poling_station_wise_voter_list')}}</h1>
					<div>
					<nav aria-label="breadcrumb">
					  <ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="{{url('/')}}">Home</a></li>
						<li class="breadcrumb-item"><a href="{{route('poling_stationwise_voterlists',$wardwise_doc->poling_stationwise_voterlist->general_election)}}">Poling station wise voter lists wards</a></li>
						<li class="breadcrumb-item"><a href="{{route('poling_stationwise_voterlists.wardwise_documents',$wardwise_doc->poling_stationwise_voterlist)}}">Poling station wise voter list ward documents</a></li>
						<li class="breadcrumb-item active" aria-current="page">Poling station wise voter list ward document display</li>
									 

					 </ol>
					</nav>
					</div>
					<div class="" style="border:1px solid #000;">
						<ul class="list-group list-group-flush"> 	 
							<div class="container text-center p-5">
								<div class="row">
								 @if($wardwise_doc->file_ext=='pdf')
									<div class="ratio ratio-16x9">
									  <iframe src="{{ asset('storage/' . $wardwise_doc->filepath) }}" allowfullscreen></iframe>
									</div>
								  @else
										<img src="{{asset('storage/'.$wardwise_doc->filepath)}}" class="card-img-top" alt="..." height="100%;">
								  @endif
								</div>
							</div>						  
						</ul>
					</div>			 
				</li>
			</ul> 
			
		</div>

	  </div>
	  
	  
	</div>
@endsection