<?php $__env->startSection('content'); ?>


<section class="inner-page-desh-pd">
	<div class="container">
		<div class="row">
		  	<div class="col-md-12">
		        <div class="row">
		        	<div class="col-lg-3 col-md-3">
			        	<div class="login-css">Search Job</div>
			        	<p class="result"></p>
			        </div>
			        <div class="col-lg-9 col-md-9 text-right PDR0 MB10">
			        	<div class="form-group has-search MB0">
						    <span class="fa fa-search form-control-feedback"></span>
						    <input type="text" class="form-control" name="search_job" placeholder="Search Job" value="<?php echo e($search_value); ?>" onkeyup="findJob()">
						</div>
			        </div>
			    </div>
			    <div class="row">
		          	<div class="col-md-3 P0 box_shadow">
		          		<meta name="total_job" content="<?php echo e(count($count)); ?>">			          		
		          		<input type="hidden" name="limit" value="<?php echo e(count($jobs)); ?>">
		          		<input type="hidden" name="applyed_job_id" value="<?php echo e(implode(',',$applyed_job)); ?>">
		          		<input type="hidden" name="candidate_wish_id" value="<?php echo e(implode(',',$candidate_wish)); ?>">
				        <h5 class="grid-title position"><i class="fa fa-filter"></i> Filters By</h5>
				        <h4 class="position">Salary Range (CTC In Lacs)</h4>
			          	<div class="bg_filters ">
				            <div class="marg_15">					            
					            <div class="double-slider">
								  	<input type="range" name="range_from" class="from" value="0" min="0" max="150" data-prev-value="0">
								  	<div class="progressbar_from"></div>
								  	<input type="range" name="range_to" class="to" value="150" min="0" max="150" data-prev-value="150">
								  	<div class="progressbar_to"></div>
								  	<span class="value-output from">0</span>
								  	<span class="value-output to">100</span>
								</div> 
				          	</div>
				          	<div class="job_type">
				            	<h4>Job Type:</h4>			  
					            <div class="checkbox">
					              	<label><input type="checkbox" class="icheck" name="job_type" value="1"> Permanent</label>
					            </div>
					            <div class="checkbox">
					              	<label><input type="checkbox" class="icheck" name="job_type" value="2"> Contractual</label>
					            </div>
				          	</div>
					        <div class="padding"></div>
					        <div class="job_type">
						        <h4>Location:</h4>
					            <div class="form-group col-md-12 select-border P0">
	                                <select class="form-control select2" name="city" onchange="search_job(this.value,'city')">
	                                  	<option value="">Select</option>
	                                  	<?php $__currentLoopData = $city; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	                                  	<option value="<?php echo e($value->id); ?>" <?php if($value->id==$location){echo 'selected';}?>><?php echo e($value->name); ?></option>
	                                  	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	                                </select>
	                            </div>
	                            <div class="col-md-12 col-sm-12 col-xs-12 P0">
	                                <p id="collectPetfrndTypes" class="city"></p>
	                            </div>
	                        </div>
	                        <div class="padding"></div>
	                        <div class="job_type">
                        	<!-- <div class="form-group col-md-12">
                                <label>Industries</label>
                            </div> -->
                            	<h4>Industries:</h4>
	                            <div class="form-group col-md-12 select-border P0">
	                                <select class="form-control select2" name="industry" onchange="search_job(this.value,'industry')">
	                                    <option value="">Select</option>
	                                    <?php $__currentLoopData = $industries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	                                    <option value="<?php echo e($value->indu_id); ?>"><?php echo e($value->indu_title); ?></option>
	                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	                                </select>
	                            </div>
	                            <div class="col-md-12 col-sm-12 col-xs-12">
	                                <p id="collectPetfrndTypes" class="industry"></p>
	                            </div>
	                        </div>
	                        <div class="padding"></div>
	                        <div class="job_type">
                            <!-- <div class="form-group col-md-12">
                            </div> -->
                                <h4>Function Areas:</h4>
	                            <div class="form-group col-md-12 select-border P0">
	                                <select class="form-control select2" name="functional_area" onchange="search_job(this.value,'functional_area')">
	                                    <option value="">Select</option>
	                                	<?php $__currentLoopData = $functional_area; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	                                    <option value="<?php echo e($value->fun_id); ?>"><?php echo e($value->fun_functional_area); ?></option>
	                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	                                </select>
	                            </div>
	                            <div class="col-md-12 col-sm-12 col-xs-12">
	                                <p id="collectPetfrndTypes" class="functional_area"></p>
	                            </div>
	                        </div>
	                        <div class="padding"></div>
	                        <div class="job_type">
	                        	<!-- <div class="form-group col-md-12">
	                            </div> -->
	                                <h4>Skills:</h4>
	                            <div class="form-group col-md-12 select-border P0">
	                                <select class="form-control select2" name="skills" onchange="search_job(this.value,'skills')">
	                                  <option value="">Select</option>
	                                  <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	                                  <option value="<?php echo e($value->skills_id); ?>" <?php if($search_value!='' && preg_match("/{$search_value}/i", $value->skills)){echo 'selected';}?>><?php echo e($value->skills); ?></option>
	                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	                                </select>
	                            </div>
	                            <div class="col-md-12 col-sm-12 col-xs-12">
	                                <p id="collectPetfrndTypes" class="skills"></p>
	                            </div>
	                        </div>
                        </div>
   				    </div>
		        <!-- </div> -->
		          	<div class="col-md-9 PDR0">
		          		<div id="newJobs">
		          		<?php if(count($jobs)>0): ?>
		          		<?php $__currentLoopData = $jobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			            	<div class="col-md-12 col-sm-12 col-lg-12 box_shadow aj">
			            		<div class="col-md-12 col-lg-12 P0">
			            			<div class="col-lg-12 col-md-12 col-sm-12 ">
										<a href="<?php echo e(url('/')); ?>/job_detail/<?php echo e($value->job_id); ?>" target="_blank">
											<span class="name text-left"> <strong><?php echo e($value->job_title); ?></strong> <?php echo e(($value->job_type=='1') ? '(Permanent)':'(Contractual)'); ?></span>
										</a>
										<span class="badge badge-danger status  text-right "> hot offer</span>
									</div>
									<div class=" MARGC col-lg-8 col-md-8">								
										<div class="Profile_summ"><?php echo e($value->job_company_name); ?></div>
										<div class="Desired_heading"> <i class="fa fa-suitcase" aria-hidden="true"></i> experience</div>
										<div class="Dis_in"> <i class="fa fa-line-chart " aria-hidden="true"></i><?php if($value->job_experience_year!=0){?>  <?php echo e($value->job_experience_year); ?> year <?php echo e(($value->job_experience_month!=0) ? $value->job_experience_month.' month' : ''); ?> experience <?php }else{echo 'Fresher';}?></div>
										<div class="Dis_in "><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo e($value->city_name); ?> IN <?php echo e($value->state_name); ?></div>
					                </div>
	                                <div class=" col-lg-4  col-md-4 price text-right ">
										<div class="Profile_summ"><strong><i class="fa fa-rupee"></i> <?php echo e(number_format($value->job_salary_from)); ?> to <?php echo e(number_format($value->job_salary_to)); ?> Lacs</strong>
										</div>
										<?php if(Session::has('userLoginInfo')): ?>
											<?php if(!in_array($value->job_id,$applyed_job)): ?>
											<div class="Profile_summ MT10"><a class="apply" href="javascript:;" onclick="applyJob('<?php echo e($value->job_id); ?>')">Apply Now</a></div>
											<?php else: ?>
											<div class="Profile_summ MT10">Applied</div>
											<?php endif; ?>
										<?php else: ?>
											<div class="Profile_summ MT10"><a class="apply" href="<?php echo e(url('/')); ?>/candidates/signIn" onclick="">Apply Now</a></div>
										<?php endif; ?>
										<?php if(Session::has('userLoginInfo')): ?>	
											<?php if(!in_array($value->job_id,$candidate_wish)): ?>
											<a class="small_txt" onclick="addWish('<?php echo e($value->job_id); ?>')">Or save for Later</a>								
											<?php endif; ?>
										<?php else: ?>
											<a class="small_txt" href="<?php echo e(url('/')); ?>/candidates/signIn">Or save for Later</a>								
										<?php endif; ?>	
									</div>
								</div>
								<div class="col-lg-12 col-md-12">
									<div class="Desired_heading">Skills:</div>
									<div class="col-md-12 col-sm-12 col-xs-12 P0">
		                                <p id="collectPetfrndTypes">
		                                	<?php if($value->skills!=null): ?>
		                                	<?php $s=explode(',',$value->skills)?>
		                                	<?php $__currentLoopData = $s; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
		                                	<span class="col-md-3 collectPetfrndHtml"><?php echo e($v); ?></span>
		                                	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		                                	<?php endif; ?>
		                                </p>
		                            </div>
									<div class="Desired_heading">Industry</div> 
									<div class="col-md-12 col-sm-12 col-xs-12 P0">
		                                <p id="collectPetfrndTypes">
		                                    <span class="col-md-3 collectPetfrndHtml"><?php echo e($value->indu_title); ?></span>	                                     
	                                    </p>
	                                </div>
		                            <div class="Desired_heading">Functional</div>
		                            <div class="col-md-12 col-sm-12 col-xs-12 P0">
	                                    <p id="collectPetfrndTypes">
	                                        <span class="col-md-3 collectPetfrndHtml"><?php echo e($value->fun_functional_area); ?><span></span></span>
	                                    </p>
									</div>
								</div>
								<div class="col-lg-12 col-md-12 col-sm-12 text-right">
									<div class="small_txt">added on <?php echo e(date('d-m-Y',strtotime($value->job_created))); ?> at <?php echo e(date('H:i',strtotime($value->job_created))); ?></div>
								</div>
							</div>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						<?php else: ?>
							<div class="col-md-12 col-sm-12 col-lg-12 box_shadow">
								<center>No Result Found!</center>
							</div>
						<?php endif; ?>
						</div>
						<?php if(count($count)>5): ?>
							<div class="text-center" id="pagination">
								<a href="#" class="btn btn-default" id="loadMore">Load More</a>
								<input type="hidden" id="hiderow" value="0">
							</div>
						<?php endif; ?>
		        	</div>
		        <!-- <div class="text-center">
		        	<a href="javascript:;" class="btn btn-default load" data-id="<?php echo e(count($jobs)); ?>"> Load More</a>
		        </div> -->
		    	</div>
			</div>
		</div>
	</div>
</section>
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/search_job.js"></script>
<script type="text/javascript">


</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.frontmaster', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>