<?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">Assigned Jobs</div>
			        </div>
			        <div class="col-lg-9 col-md-9 PDR0">
			        	<meta charset="utf-8" content="<?php echo e(Session::get('userLoginInfo')['userType']); ?>" name="userType">
			        	<div class="form-group has-search MB10">
						    <span class="fa fa-search form-control-feedback"></span>
						    <input type="text" class="form-control" name="search_job" placeholder="Search" onkeyup="findJobs()">
						 </div>
			        	<p class="result"></p>	
			        </div>
			        <!-- <div class="col-lg-4 col-md-4"></div> -->
			    </div>
			    <div class="row">
		          	<div class="col-md-3 P0 box_shadow">
			          	<div class="bg_filters ">
			          		<h5 class="grid-title position"><i class="fa fa-filter"></i> Filters By</h5>
				            <h4>Job Type:</h4>
					            <div class="checkbox">	
					              <label><input type="checkbox" name="job_type" class="icheck" value="1"> Permanent</label>
					            </div>
					            <div class="checkbox">
					              <label><input type="checkbox" name="job_type" class="icheck" value="2">Contractual</label>
					            </div>
					            <div class="padding"></div>
					            <div class="form-group col-md-12 P0 MB0">
                                    <label>Location</label>
                                </div>
					            <div class="form-group col-md-12 select-border P0">
	                                <select class="form-control select2" name="city" onchange="getVal(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 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 MB30">
	                                <p id="collectPetfrndTypes" class="city"></p>
	                            </div>
                            	<div class="form-group col-md-12 P0 MB0">
                                    <label>Industries</label>
                                </div>
                                <div class="form-group col-md-12 P0 select-border">
                                    <select class="form-control select2" name="industry" onchange="getVal(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 P0 MB30">
                                    <p id="collectPetfrndTypes" class="industry"></p>
                                </div>
                                <div class="form-group col-md-12 P0 MB0">
                                    <label>Function Areas  </label>
                                </div>
                                <div class="form-group col-md-12 P0 select-border">
                                    <select class="form-control select2" name="functional_area" onchange="getVal(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 P0 MB30">
                                    <p id="collectPetfrndTypes" class="functional_area"></p>
                                </div>
                            	<div class="form-group col-md-12 P0 MB0">
                                    <label>Skills</label>
                                </div>
                                <div class="form-group col-md-12 P0 select-border">
                                    <select class="form-control select2" name="skills" onchange="getVal(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 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 P0">
                                    <p id="collectPetfrndTypes" class="skills"></p>
                                </div>
                            </form>
   				        </div>
		          	</div>
		          	<div class="col-md-9 PDR0 Assign_job">
		          		<?php if(count($data)>0): ?>
		          		<?php $__currentLoopData = $data; $__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">
		            		<div class="col-md-12 col-lg-12 P0">
		            			<div class="col-lg-12 col-md-12 col-sm-12 ">
									<span class="name text-left"> <strong><?php echo e($value->job_title); ?></strong> (<?php echo e(($value->job_type=='1') ? 'Permanent' : 'Contractual'); ?>) </span>
									<span class="badge badge-danger status  text-right "> hot offer</span>
									<?php /* @if($value->addcv_allocation=='0')
									<a href="javascript:;" onclick="checkJob('{{$value->job_id}}','reject')">
										<span class="float-right text-right heart_mrg assign" title="Reject"><i class="fa fa-times mrgt" aria-hidden="true"></i></span>
									</a>
									<a href="javascript:;" onclick="checkJob('{{$value->job_id}}','accept')">
										<span class="float-right text-right  heart_mrg assign" title="Accept"><i class="fa fa-check mrgt" aria-hidden="true"></i></span>
									</a>
									@endif */ ?>
								</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> <?php echo e($value->job_positions); ?></div>
									<div class="Dis_in"> <i class="fa fa-line-chart " aria-hidden="true"></i>   <?php echo e($value->job_experience); ?> year experience</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)); ?></strong></div>
									<div class="Dis_in "><?php if($value->job_salary_period=='1'){echo 'Weekly';}else if($value->job_salary_period=='2'){echo 'Monthly';}else if($value->job_salary_period=='3'){echo 'Yearly';}?>
									</div>
									<div class="Desired_heading" > <strong>Share On </strong> 
                                		<a data-toggle="modal" data-target="#socialModal"> <i class="fa fa-share-alt" aria-hidden="true"></i></a>
                                	</div>
								</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 $skill= explode(',',$value->skills); ?>
	                                    	<?php $__currentLoopData = $skill; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	                                        <span class="col-md-3 collectPetfrndHtml"><?php echo e($val); ?></span>
	                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	                                    </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>
                                    </p>
								</div>
							</div>
							<div class="col-lg-6 col-md-6 MT10">
							<?php if(Session::get('userLoginInfo')['userType']=='consultants'): ?>
								<a class="assign_heading" onclick="openModel('<?php echo $value->job_id;?>')"> Payment Info</a>
							<?php endif; ?>
							</div>
							<div class="col-lg-6 col-md-6 text-right">
								<div class="Desired_heading"> Expires On : <span class="Profile_summ"><?php echo e(date('d-m-Y',strtotime($value->job_expiry_date))); ?></span></div>
							</div>						
							<div class="col-lg-12 col-md-12 ">
								<div class="col-lg-3 col-md-3 MT10 P0 text-center">
									<a class="assign_heading" href="<?php echo e(url('/')); ?>/candidate_search/<?php echo e($value->job_id); ?>"><i class="fa fa-plus"></i> Add Candidates</a>
								</div>
								<div class="col-lg-3 col-md-3 MT10 P0 text-center">
									<a class="assign_heading" href="<?php echo e(url('/')); ?>/candidate_listing/<?php echo e($value->job_id); ?>">View Candidate</a>
								</div>
								<div class="col-lg-3 col-md-3 MT10 P0 text-center">
									<a class="assign_heading" href="javascript:;" onclick="checkJob('<?php echo e($value->job_id); ?>','reject')">Discontinue Assignment</a>
								</div>
								<div class="col-lg-3 col-md-3 MT10 P0 text-center">
									<a class="assign_heading" href="<?php echo e(url('/')); ?>/walk_in_interview/consultant/<?php echo e($value->job_id); ?>"><i class="fa fa-plus"></i> Create Walk In</a>
								</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>
		    	</div>
			</div>
		</div>
</section>

<div class="modal" id="myModal">
    <div class="modal-dialog Modal_width">
        <div class="modal-content custm_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Payment Details</h4>
            </div>
            <div class="modal-body">
               <table class="table table-bordered">
					<thead>
					  	<tr>
						    <th class="tab_head">Start Date</th>
						    <th class="tab_head">End Date</th>
						    <th class="tab_head">CTC Range</th>
						    <th class="tab_head">Percent(%)</th>
						    <th class="tab_head">Payment Days</th>
						    <th class="tab_head">Replacement Days</th>
						    <th class="tab_head">Consultant Share</th>
					  	</tr>
					</thead>
					<tbody>
		    		    <tr id="pt">
 						    <td>Jan 1 , 2018</td>
						    <td>April 25, 2020</td>
						    <td>INR 0 to 10 LPA</td>
						    <td>6</td>
						    <td>30</td>
						    <td>90</td>
						    <td>80%</td>
	                    </tr>
					</tbody>
				</table>
            </div> 
        </div>  
    </div>
</div>
<!--Modal: modalSocial-->
<div class="modal fade" id="socialModal">
  <div class="modal-dialog cascading-modal" role="document">
    <!--Content-->
    <div class="modal-content">
      <!--Header-->
      <div class="modal-header light-blue darken-3 white-text">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class=""><i class="fa fa-users"></i> Spreed the word!</h4>
      </div>
      <!--Body-->
      <div class="modal-body mb-0 text-center">
       <?php echo Share::page(Request::url(), 'Share title')
					->facebook()
					->twitter()
					->linkedin('Extra linkedin summary can be passed here')
					->whatsapp();; ?>

      </div>
    </div>
    <!--/.Content-->
  </div>
</div>
<!--Modal: modalSocial-->
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/assigned_job.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.frontmaster', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>