<?php $__env->startSection('index-content'); ?>
<style>
	select{
		height: 40px;
	}
</style>
<?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">
			<div class="row px-4">
				<div class="col-lg-5 pl-0">
					<h2>Survey Installation</h2>	
				</div>
			
				<div class="col-lg-5">
					<ol class="breadcrumbs">
						<li>
							<a href="<?php echo e(url('index')); ?>">
								<i class="fa fa-home"></i>
							</a>
						</li>
						<li><span class="active">Survey Installation</span></li>
					</ol>
				</div>
			</div>
		</header>
		<!-- <header class="page-header">
			<h2>Survey Installation</h2>
		</header>
		<div class="row">
			<div class="col-xs-12">
				<div class="right-wrapper">
					<ol class="breadcrumbs">
						<li>
							<a href="<?php echo e(url('index')); ?>">
								<i class="fa fa-home"></i>
							</a>
						</li>
						<li><span class="active">Survey Installation</span></li>
					</ol>
				</div>
			</div>
		</div> -->

		<!-- start: page -->
		<section class="panel mt-4">
			<header class="panel-heading">
				<h4 class="my-0">Gram 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>
			<?php if(session('error')): ?>
						<div class="alert alert-danger"><?php echo e(session('error')); ?></div>
						<?php endif; ?>
						<?php if(session('success')): ?>
						<div class="alert alert-success"><?php echo e(session('success')); ?></div>
						<?php endif; ?>
			<form target="_blank" action="<?php echo e(url('displayallsearch')); ?>" method="get">
				<?php echo csrf_field(); ?>
				<div class="panel-body">
					<div class="row px-3">
						<div class="col-md-4 px-2">
							<h4>District Name</h4>
							<select name="jillase" id="jilla_id" class="w-100" required>
								<option value="">District Name</option>

								<?php $__currentLoopData = $jilla; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<option value="<?php echo e($j->id); ?>"><?php echo e($j->area_name); ?></option>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</select>

						</div>
						<div class="col-md-4 px-2">
							<h4>Mandal Name</h4>
							<select name="talukase" class="w-100" id="taluka" required>
								<option value="">Mandal Name</option>   
							</select>
						</div>
						<div class="col-md-4 px-2">
							<h4>Panchayat Name</h4>
							<select name="gramse" class="w-100" id="gram_id" required>
								<option value="">Panchayat Name</option>
							</select>
						</div>
					</div>
					<div class="row">
						<div class="col-12 px-3">
							<div class="text-right mt-3 pr-2">
								<input type="submit" class="btn btn-success" value="Submit" id="surveyfilter">
							</div>
						</div>
					</div>
				</div>
			</form>
		</section>

<?php if(session()->get('role')==0): ?>
		<section class="panel">
			<header class="panel-heading">
				<h4 class="my-0">User 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="<?php echo e(url('displaysearchallot')); ?>" method="post">
				<?php echo csrf_field(); ?>
				<div class="panel-body">
					<div class="row px-3">
						<div class="col-sm-4 px-2">
							<h4>User Name</h4>
							<select name="user_id" id="user_id" class="w-100">
								<option value="">User Name</option>

								<?php $__currentLoopData = $userlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<option value="<?php echo e($j->id); ?>"><?php echo e($j->name); ?></option>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</select>

						</div>
						<div class="col-sm-4 px-2">
							<h4>Panchayat Name</h4>
							<select name="grams" id="grams" class="w-100">
								<option value="">Panchayat Name</option>   
							</select>
						</div>
						<div class="col-md-4 mt42">
							<input type="submit" class="btn btn-success mr-2" value="View Gram Wise" id="surveyfilter">
							<form action="<?php echo e(url('displaysearchallotusers')); ?>" method="post">
						<?php echo csrf_field(); ?>	
						<input type="hidden" name="user_id" id="usersid">
						<div style="display: inline-block;">
							<div class="text-left">
								<input type="submit" class="btn btn-success"  id="surveyfilter" value="View All">
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</form>

	</div>

	</section>
	<?php endif; ?>
</section>

</div>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/neefc25/public_html/tgredco.fovea.in/resources/views/backend/survey_view.blade.php ENDPATH**/ ?>