@extends('backend.header')
@section('index-content')
<?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);
}

?>
<div class="row px-3">


	<section role="main" class="content-body">
		<header class="page-header">
			<h2>Abstract Of Survey</h2>
		</header>
		<div class="row">
			<div class="col-xs-12">
				<div class="right-wrapper">
					<ol class="breadcrumbs">
						<li>
							<a href="{{url('index')}}">
								<i class="fa fa-home"></i>
							</a>
						</li>
						<li><span class="active">Abstract Of Survey</span></li>
					</ol>
				</div>
			</div>
		</div>

		<!-- start: page -->
		<section class="panel mt-3">
			<header class="panel-heading">
				<h4 class="my-0">District Wise Search</h4>	
				<div class="panel-actions">
					<a href="#" class="fa fa-caret-down"></a>
					<a href="#" class="fa fa-times"></a>
				</div>

				<!--<h2 class="panel-title">सर्वेक्षण तपशील</h2>-->
			</header>
			<form action="{{url('displayabstractsurvey')}}" method="post">
				@csrf
				<div class="panel-body">

					<div class="row px-3">
						<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>

								@foreach($jilla as $j)
								<option value="{{$j->id}}">{{$j->area_name}}</option>
								@endforeach
							</select>

						</div>
						<div class="col-sm-4 px-2">
							<h4>User Name</h4>
							<select name="user_id" class="w-100 h40" id="user_id">
								<option value="">User Name</option>

								@foreach($userlist as $j)
								<option value="{{$j->id}}">{{$j->name}}</option>
								@endforeach
							</select>

						</div>
						<div class="col-sm-2 mt32">
							<div class="text-left mt-3 pr-2">
								<input type="submit" class="btn btn-success" value="Search" id="surveyfilter">
							</div>
						</div>
                                    <!-- <div class="col-sm-4" style="height:100px;border:1px solid black;border:none;">
                                        <h4>Mandal Name</h4>
                                        <select name="talukase" style="height:40px;width:100%;margin-top:0px;" id="taluka">
                                          <option value="">Mandal Name</option>   
                                        </select>
                                    </div>
                                    <div class="col-sm-4" style="height:100px;border:1px solid black;border:none;">
                                        <h4>Panchayat Name</h4>
                                        <select name="gramse" style="height:40px;width:100%;margin-top:0px;" id="gram_id">
                                         	<option value="">Panchayat Name</option>
                                         	</select>
                                          
                                         </div> -->

                                       </div>
                                <!-- <div class="row">
                                	<div class="col-12 px-3">
		                                <div class="text-center mt-3 pr-2">
		                                	<input type="submit" class="btn btn-success" value="Search" id="surveyfilter">
		                                </div>
		                            </div>
		                          </div> -->
                                <!-- <div class="row">
                                <input type="submit" style="padding:10px;margin-top:20px;width:20%;margin-left:400px;" class="btn btn-success" value="Search" id="surveyfilter">
								<input type="submit" style="padding:10px;margin-top:20px;width:20%;margin-left:60px;" class="btn btn-success" value="Search User Wise" id="surveyfilter">
								<input type="submit" style="padding:10px;margin-top:20px;width:20%;margin-left:60px;" class="btn btn-success" value="Search All" id="surveyfilter">
							</div> -->
							<br>

						</div>
					</form>
					<div class="row">
						<!--<a href="/printall"><button class="btn btn-primary" style="padding:15px;float:left;width:20%;margin-left:50px;">Print All</button></a>-->
					</div>
				</section>
<!-- 
						<section class="panel">
							<header class="panel-heading">
							<h4>User Wise Search</h4>	
								<div class="panel-actions">
									<a href="#" class="fa fa-caret-down"></a>
									
								</div>
						
								<!--<h2 class="panel-title">सर्वेक्षण तपशील</h2>
							</header>
							<form action="/displaysearchallot" method="post">
							    @csrf
							<div class="panel-body">
							    <div class="row">
                                    <div class="col-md-2"></div>
									<div class="col-sm-4" style="height:100px;border:1px solid black;border:none;">
                                        <h4>User Name</h4>
                                        <select name="user_id" style="height:40px;width:100%;margin-top:0px;" id="user_id">
                                          <option value="">User Name</option>
                                            
                                            @foreach($userlist as $j)
                                            <option value="{{$j->id}}">{{$j->name}}</option>
                                            @endforeach
                                          </select>
                                          
                                    </div>
                                    <div class="col-sm-4" style="height:100px;border:1px solid black;border:none;">
                                        <h4>Panchayat Name</h4>
                                        <select name="grams" style="height:40px;width:100%;margin-top:0px;" id="grams">
                                          <option value="">Panchayat Name</option>   
                                        </select>
                                    </div>
                                    <div class="col-md-2"></div>
                                </div>
                                <div class="row">
								<div class="col-md-6"><input type="submit" style="padding:10px;margin-top:20px;width:40%;margin-left:300px;" class="btn btn-success" value="View Gram Wise" id="surveyfilter"></div>
								</form>
								
								<form action="/displaysearchallotusers" method="post">
									@csrf	
								<input type="hidden" name="user_id" id="usersid">
								<div class="col-md-6"><input type="submit" style="padding:10px;margin-top:20px;width:40%;margin-right:-40px;" class="btn btn-success"  id="surveyfilter" value="View All"></div>
								</form>
                                
                            
							</div>
                                
                                
							</div>
							
							<div class="row"> -->
								<!--<a href="/printall"><button class="btn btn-primary" style="padding:15px;float:left;width:20%;margin-left:50px;">Print All</button></a>-->
	    <!-- </div>
	    </section> -->
	  </section>

	</div>



	@stop