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

<section  class="inner-page-desh-pd">
    <div class="container">
        <div class="row">  
            <div class="col-lg-12 col-md-12 col-sm-12 P0">
            	<div class="col-lg-2 col-md-2 P0">
		        	<div class=" login-css P0">Candidate Listing</div>
		        </div>
		        <div class="col-lg-2 col-md-2">
		        	<a data-toggle="modal" data-target="#myModal" class="grid-title position Z0"><i class="fa fa-filter"></i> Filters By</a>
		        </div>
            	<div class="col-lg-8 col-md-8 PDR0">
		        	<div class="form-group has-search MB10">
					    <span class="fa fa-search form-control-feedback"></span>
					    <input type="text" class="form-control" placeholder="Search" name="search_candidate" onkeydown="candidateFilter()">
					 </div>	
		        </div>
            	<div class="candidate_list">
            		<table class="table table-responsive  table-bordered text-center">
						<thead class="text-center">
						  	<tr>
							    <th class="tab_head text-center">Sr No.</th>
							    <th class="tab_head text-center">Candidate Name</th>
							    <th class="tab_head text-center">Client Name</th>
							    <th class="tab_head text-center">Job Title</th>
							    <th class="tab_head text-center">Position</th>
							    <th class="tab_head text-center">Status</th>
							    <th class="tab_head text-center">Action</th>						    
						  	</tr>
						</thead>
						<tbody id="tcan">
						<?php if(count($candidates)>0): ?>
							<?php $k = 1; ?>
							<?php $__currentLoopData = $candidates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						  	<tr>
						  		<td><?php echo e($k++); ?></td>
							    <td><?php echo e($value->can_name); ?></td>
							    <td><?php echo e($value->con_name); ?></td>
							    <td><?php echo e($value->job_title); ?></td>
							    <td><?php echo e($value->job_positions); ?></td>
							    <td><a href="javascript:;"><p class="candidate_btn"><?php if($value->addcv_status=='1'){echo 'Screening Pending';}else if($value->addcv_status=='2'){echo 'Feedback Pending';}else if($value->addcv_status=='3'){echo 'Scheduling Pending';}else if($value->addcv_status=='4'){echo 'Interview Scheduling';}else if($value->addcv_status=='5'){echo 'Interview Done';}else if($value->addcv_status=='6'){echo 'Offers';}else if($value->addcv_status=='7'){echo 'Joineers';}else if($value->addcv_status=='8'){echo 'Post Interview Follow Up';}else if($value->addcv_status=='9'){echo 'Yet To Schedule';}else if($value->addcv_status=='10'){echo 'Input Required';}else{echo '-';}?></p></a></td>
							    <td> 
                                  <a class="dis_block">Schedule Interview</a> 
                                  <a class="dis_block" onclick="getComments('<?php echo e($value->can_id); ?>')">View Comment</a> 
                                  <a class="dis_block" onclick="openComment('<?php echo e($value->can_id); ?>')">Add Comment</a>
                                  <a class="dis_block" onclick="openStatus('<?php echo e($value->con_cv_id); ?>')">Change Status</a>
								</td>
						    </tr>
						    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						<?php else: ?>
							<tr>
								<td colspan="7"><center>No Result Found</center></td>
							</tr>
						<?php endif; ?>    
						</tbody>
					</table>
            	</div>
            </div>
        </div>
    </div>
</section>

<div class="modal candidate_list_modal" id="myModal">
    <div class="modal-dialog ">
        <div class="modal-content custm_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Filter By</h4>
            </div>
            <form method="post" id="filterForm">
           		<div class="modal-body">
	               	<div class="row">
	            		<div class="col-xs-12">
	            			<!-- tabs -->
	            			<div class="tabbable tabs-left">
	            				<ul class="nav nav-tabs col-lg-3">
	            					<li class="active"><a href="#home" data-toggle="tab">Status</a></li>
	            					<li><a href="#about" data-toggle="tab">Notice Period</a></li>
	            					<li><a href="#services" data-toggle="tab">CTC</a></li>
	            				</ul>
	            				<div class="tab-content col-lg-9">
	            					<div class="tab-pane active" id="home">                
	            						<div class="">
	            							<div class="form-group col-md-12 mb-0 P0">
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="0"> Select All
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="1" <?php if($status=='1'){echo 'checked';}?>> Screening Pending
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="2" <?php if($status=='2'){echo 'checked';}?>> Feedback Pending
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="3" <?php if($status=='3'){echo 'checked';}?>> Scheduling Pending
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="4" <?php if($status=='4'){echo 'checked';}?>> Interview Scheduling
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="5" <?php if($status=='5'){echo 'checked';}?>> Interview Done
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="6" <?php if($status=='6'){echo 'checked';}?>> Offers
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="7" <?php if($status=='7'){echo 'checked';}?>> Joineers
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="8" <?php if($status=='8'){echo 'checked';}?>> Interview Follow Up
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="9" <?php if($status=='9'){echo 'checked';}?>> Yet To Schedule
	                                                </label>
	                                            </div>
	                                            <div class="form-check">
	                                                <label>
	                                                    <input class="form-check-input position-static" type="checkbox" name="status[]" value="10" <?php if($status=='10'){echo 'checked';}?>> Input Required
	                                                </label>
	                                            </div>
	                                        </div>                
	            						</div>
	            					</div> 
	            					<div class="tab-pane" id="about">          						
	            						<div class="form-group col-md-12 P0">                                    
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="1" checked=""><span class="F18">&#62;</span> 15 
	                                            </label>
	                                        </div>
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="2"> 30
	                                            </label>
	                                        </div>
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="3"> 60
	                                            </label>
	                                        </div>
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="4"> 90
	                                            </label>
	                                        </div>
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="5"><span class="F18">&#60;</span> 90
	                                            </label>
	                                        </div>
	                                        <div class="radio col-md-12 P0">
	                                            <label>
	                                                <input type="radio" name="notice_period" value="6"> Serving
	                                            </label>
	                                        </div>
	                                    </div>
	            					</div>
	            					<div class="tab-pane" id="services"> 
	            						<div class="">
	            							<div class="form-group col-md-12 P0">
	                                            <label>Min (Lakh) </label>
	                                            <input type="text" class="form-control" name="min_sal" placeholder="Please enter CTC">
	                                        </div>
	                                        <div class="form-group col-md-12 P0">
	                                            <label>Max (Lakh)  </label>
	                                            <input type="text" class="form-control" name="max_sal" placeholder="Please enter CTC">
	                                        </div>               
	            						</div>
	            					</div>
	                                <button type="button" class="btn btn-primary btn_Save" onclick="candidateFilter()">Save</button>
	                                <button type="button" class="btn btn-danger btn_cancel">Reset</button>
	            				</div>
	            			</div>
	            			<!-- /tabs -->
	            		</div>
	            	</div>
           	 	</div> 
            </form>
        </div>  
    </div>
</div>

<div class="modal" id="viewModal">
    <div class="modal-dialog ">
        <div class="modal-content custm_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">View Comment</h4>
            </div>
            <div class="modal-body">
               	<div class="form-group">
                    <label>View Comment<span class="star"> *</span></label>
                    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p>
                    <!-- <textarea id="w3mission" rows="4" cols="50"></textarea> -->
                </div>
                <button type="submit" form="nameform" value="Submit"  class="btn btn-primary btn_Save">Submit</button>
                <button type="Reset" form="nameform" value="Reset" class="btn btn-danger btn_cancel">Reset</button>
            </div> 
        </div>  
    </div>
</div>

<div class="modal" id="commentModal">
    <div class="modal-dialog ">
        <div class="modal-content custm_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Add Comment</h4>
            </div>
            <div class="modal-body">
            	<input type="hidden" name="can_id">
               	<div class="form-group">
                    <label>Add Comment<span class="star"> *</span></label>
                    <textarea class="form-control" name="comment" rows="4" cols="50"></textarea>
                </div>
                <button type="button" form="nameform" value="Submit"  class="btn btn-primary btn_Save comsum">Submit</button>
                <!-- <button type="button" form="nameform" value="Reset" class="btn btn-danger btn_cancel">Reset</button> -->
            </div> 
        </div>  
    </div>
</div>

<div class="modal" id="statusModal">
    <div class="modal-dialog ">
        <div class="modal-content custm_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Change Status</h4>
            </div>
            <div class="modal-body">
            	<div class="form-group P0 MB0">
                    <label>Change Status</label>
                    <input type="hidden" name="can_id">
                </div>
                <div class="form-group  select-border P0">
                    <select class="form-control" name="can_status">
                      	<option value="0">Select</option>
                      	<option value="1" <?php if($status=='1'){echo 'selected';}?>>Screening Pending</option>
                      	<option value="2" <?php if($status=='2'){echo 'selected';}?>>Feedback Pending</option>
                      	<option value="3" <?php if($status=='3'){echo 'selected';}?>>Scheduling Pending</option>
                      	<option value="4" <?php if($status=='4'){echo 'selected';}?>>Interview Schedule</option>
                      	<option value="5" <?php if($status=='5'){echo 'selected';}?>>Interview Done</option>
                      	<option value="6" <?php if($status=='6'){echo 'selected';}?>>Offer's</option>
                      	<option value="7" <?php if($status=='7'){echo 'selected';}?>>Joineer's</option>
                      	<option value="8" <?php if($status=='8'){echo 'selected';}?>>Interview Follow Up</option>
                      	<option value="9" <?php if($status=='9'){echo 'selected';}?>>Yet To Schedule</option>
                      	<option value="10" <?php if($status=='10'){echo 'selected';}?>>Input Required</option>
                    </select>
                </div>
                <button type="button" value="Submit" class="btn btn-primary btn_Save" onclick="saveStatus()">Submit</button>
                <!-- <button type="button" value="Reset" class="btn btn-danger btn_cancel">Reset</button> -->
            </div> 
        </div>  
    </div>
</div>
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/candidate_status_list.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.frontmaster', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>