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

<section  class="inner-page-desh-pd candidate_dashbroad">
    <div class="container">
        <div class="row">  
            <div class="col-lg-12 col-md-12 col-sm-12">
                <div class="Profile_details">
                    <div class="row">
                        <div class="col-lg-2 col-md-2 col-sm-2">
                            <div class="profile_img">
                                <form class="md-form">
                                    <div class="file-field">
                                        <div class="mb-4">
                                          <?php if($candidates->can_avatar!=''): ?>
                                          <img src="<?php echo e(url('/')); ?>/uploads/candidate_profile/<?php echo e($candidates->can_avatar); ?>" class="rounded-circle z-depth-1-half avatar-pic" alt="example placeholder avatar">
                                          <?php else: ?>  
                                          <img src="https://mdbootstrap.com/img/Photos/Others/placeholder-avatar.jpg" class="rounded-circle z-depth-1-half avatar-pic" alt="example placeholder avatar">
                                          <?php endif; ?>
                                        </div>
                                        <div class="d-flex justify-content-center">
                                            <div class="btn btn-mdb-color btn-rounded float-left">
                                            <?php if($candidates->can_avatar!=''): ?>
                                                <span class="add_pic">Change photo</span>
                                            <?php else: ?>
                                                <span class="add_pic">Add photo</span>
                                            <?php endif; ?>
                                               <input type="file" name="candidate_profile" class="can_profile" accept="image/x-png,image/gif,image/jpeg">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-lg-10 col-md-10 col-sm-10">
                            <div class="row marg0">
                                <div class="col-lg-6 col-md-6 P0">
                                    <div class="profile_des_title"><?php echo e($candidates->can_name ?? ''); ?></div>
                                </div>
                                <div class="col-lg-6 col-md-6">
                                    <div class="add_edit">
                                        <span><i data-toggle="modal" data-target="#myModal" class="fa fa-edit"></i></span>
                                    </div>
                                </div>
                            </div>
                            <div class="profile_description">
                                <div class="Profile_des"><?php if($current_employment->organization!=null){ echo $current_employment->designation .' at '. $current_employment->organization ;}?></div>
                                <div class="row">
                                    <div class="col-lg-5 col-md-5">
                                        <div class="Profile_location"> 
                                            <?php if($candidates->state_name!=null){echo '<i class="fa fa-map-marker" aria-hidden="true"></i>'. $candidates->city_name.' , '.$candidates->state_name;}?>
                                        </div>
                                        <div class="Profile_location"><i class="fa fa-suitcase" aria-hidden="true"></i> <?php if($candidates->can_work_exp_year==0 && $candidates->can_work_exp_month==0){ echo 'Fresher';} if($candidates->can_work_exp_year!=0){ echo $candidates->can_work_exp_year.' Year(s) ';} if($candidates->can_work_exp_month!=0){echo $candidates->can_work_exp_month.' Month(s)';}?> </div>
                                        <div class="Profile_location"><?php if($current_employment->current_salary_lacs!='' && $current_employment->current_salary_thousand!=''){?><i class="fa fa-credit-card-alt" aria-hidden="true"></i> INR <?php echo e($current_employment->current_salary_lacs); ?> Lakh(s) <?php echo e($current_employment->current_salary_thousand); ?> Thousand <?php }?></div>
                                    </div>               
                                    <div class="col-lg-7 col-md-7">
                                        <div class="Profile_location">
                                            <i class="fa fa-phone" aria-hidden="true"></i> <?php echo e($candidates->can_mobile ?? ''); ?>

                                            <span data-toggle="modal" data-target="#verifyModal" class="Verify">
                                                <!-- <span>Verify &#47;</span> -->
                                                <!-- <span>change &#47;</span> -->
                                                <!-- <span>Un-Verify</span> -->
                                            </span>
                                        </div>
                                        <div class="Profile_location">
                                            <i class="fa fa-envelope" aria-hidden="true"></i> <?php echo e($candidates->can_email ?? ''); ?>

                                            <span  class="Verify">
                                                <span style="color: green">Verified &#47;</span>
                                                <span data-toggle="modal" data-target="#verifyModal" style="cursor: pointer;">change</span>
                                            </span>
                                        </div>
                                    </div>               
                                </div>
                            </div>
                            <div class="modal" id="verifyModal">
                                <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">Verify Details</h4>
                                        </div>
                                        <div class="modal-body">
                                            <form method="post" id="emailVerifyForm">
                                                <div class="row">
                                                    <!-- <div class="form-group col-md-12">
                                                        <label>Name <span class="star"> *</span></label>
                                                        <input type="text" class="form-control" value="" placeholder="Name">
                                                    </div> -->
                                                    <div class="form-group col-md-12">
                                                        <label>Email <span class="star"> *</span></label>
                                                        <input type="email" class="form-control" name="can_email" id="email" placeholder="Email">
                                                        <span style="color: red" id="errvmail"></span>
                                                    </div>
                                                    <!-- <div class="form-group col-md-12">
                                                        <label>Mobile <span class="star"> *</span></label>
                                                        <input type="number" class="form-control" value="" placeholder="Mobile">
                                                    </div> -->
                                                </div>
                                                <button type="button" class="btn btn-primary btn_Save verifyEmail">Save</button>
                                                <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                            </form>
                                        </div> 
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="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">Basic Details</h4>
                                </div>
                                <div class="modal-body">
                                    <form method="post" id="basicForm">
                                        <div class="row">
                                            <div class="form-group col-md-12">
                                                <label>Name <span class="star"> *</span></label>
                                                <input type="text" name="candidate_name" id="candidate_name" class="form-control" value="<?php echo e($candidates->can_name ?? ''); ?>" placeholder="Name">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Date of Birth </label>
                                                <input type="text" name="candidate_dob" class="form-control date" value="<?php echo e(($candidates->can_dob!='0000-00-00') ? date('d-m-Y',strtotime($candidates->can_dob)) : ''); ?>" placeholder="Date of Birth">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Gender <br>
                                                <div class="radio col-md-4">
                                                    <label>
                                                        <input type="radio" name="candidate_gender" id="candidate_gender" value="1" <?php if($candidates->can_gender=='1'){echo 'checked';}else{ echo 'checked';}?>>Male
                                                    </label>
                                                </div>
                                                <div class="radio col-md-4">
                                                    <label>
                                                        <input type="radio" name="candidate_gender" id="candidate_gender" value="2" <?php if($candidates->can_gender=='2'){echo 'checked';}?>>Female
                                                    </label>
                                                </div>
                                                 <div class="radio col-md-4">
                                                    <label>
                                                        <input type="radio" name="candidate_gender" id="candidate_gender" value="3" <?php if($candidates->can_gender=='3'){echo 'checked';}?>>Other
                                                    </label>
                                                </div>
                                                </label>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Permanent Address</label>
                                                <textarea class="form-control" name="candidate_address" rows="3" cols="67"><?php echo e($candidates->can_address ?? ''); ?></textarea>
                                            </div>
                                            <div class="form-group col-md-6">
                                                <label>Hometown</label>
                                                <select class="form-control select2" name="candidate_hometown">
                                                    <option value="">Select Hometown</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($candidates->can_current_location == $value->id){echo 'selected';}?>><?php echo e($value->name); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                            </div>
                                            <div class="form-group col-md-6">
                                                <label>Pincode</label>
                                                <input type="number" class="form-control" name="candidate_pincode" value="<?php echo e(($candidates->can_pin!=0) ? $candidates->can_pin:''); ?>" placeholder="Enter Your Pincode">
                                            </div>
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Marital Status </label>
                                            </div>
                                            <div class="form-group col-md-12 select-border">
                                                <select class="form-control select2" name="candidate_relation">
                                                  <option value="">Select Marital Status</option>
                                                  <option value="1" <?php if(($candidates->can_marrital_status ?? '') == '1'){echo 'selected';}?>> Single/Unmarried </option>
                                                  <option value="2" <?php if(($candidates->can_marrital_status ?? '') == '2'){echo 'selected';}?>> Married </option>
                                                </select>
                                            </div>
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Category </label>
                                            </div>
                                            <div class="form-group col-md-12 select-border">
                                                <select class="form-control select2" name="candidate_cast">
                                                    <option value="">Select</option>
                                                    <option value="General" <?php if(($candidates->can_cast_category ?? '') == 'General'){echo 'selected';}?>>General</option>
                                                    <option value="SC" <?php if(($candidates->can_cast_category ?? '') == 'SC'){echo 'selected';}?>>SC</option>
                                                    <option value="ST" <?php if(($candidates->can_cast_category ?? '') == 'ST'){echo 'selected';}?>>ST</option>
                                                    <option value="OBC" <?php if(($candidates->can_cast_category ?? '') == 'OBC'){echo 'selected';}?>>OBC</option>
                                                    <option value="Other" <?php if(($candidates->can_cast_category ?? '') == 'Other'){echo 'selected';}?>>Other</option>
                                                </select>
                                            </div>
                                        </div>
                                        <button type="button" class="btn btn-primary btn_Save basic_details">Save</button>
                                        <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                    </form>
                                </div> 
                            </div>  
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>  
    <div class="container">
	    <div class="col-lg-3 col-md-3 col-sm-3 P0"> 
            <div class="side_nav">
    	        <div class="profile_nav_head">Quick Links</div>
	            <ul class="Profile_list">
                    <li> <a class="nav-link" href="#attach_resume">Attach Resume</a></li>
                    <li> <a class="nav-link" href="#key_skills">Key Skills</a></li>
                    <li> <a class="nav-link" href="#employment">Employment</a></li>
                    <li> <a class="nav-link" href="#education">Education</a></li>
                    <li> <a class="nav-link" href="#it_skills">IT Skills</a></li>
                    <li> <a class="nav-link" href="#projects">Projects</a></li>
                    <li> <a class="nav-link" href="#profile_summary">Profile Summary</a></li>
                    <li> <a class="nav-link" href="#social_link">Social Link</a></li>
                    <li> <a class="nav-link" href="#career_profile">Desired Career Profile</a></li>
                </ul>
            </div>
        </div>
        <div class="col-lg-9 col-md-9 col-sm-9 PDR0">
            <div class="row marg0">
                <div class="col-lg-12 col-md-12 col-sm-12" id="attach_resume">
                    <div>
                        <div class="profile_nav_head">Attach Resume</div>
                        <p>Resume is the most important document recruiters look for. Recruiters generally do not look at profiles without resumes.</p>
                        <?php if($candidates->can_resume!=null): ?>
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12">
                                <div class="col-md-9">
                                    <b><?php echo e(substr(strstr($candidates->can_resume,"_"), 1) ?? ''); ?></b>&nbsp;-&nbsp;    
                                    <span>Uploaded On <?php echo e(date('M d, Y',strtotime($candidates->can_updated))); ?></span>
                                </div>
                                <div class="col-md-3 text-right">
                                    <a href="<?php echo e(url('/')); ?>/uploads/candidate_resume/<?php echo e($candidates->can_resume); ?>" class="downloadtxt" title="Download Resume" download><i class="fa fa-download" aria-hidden="true"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12 col-sm-12 text-right">
                                <a href="javascript:;" class="delete_resume">Delete Resume</a>
                            </div>    
                        </div>
                        <?php endif; ?>
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 text-center">
                                <div class="form-group">
                                    <form class="md-form">
                                      <div class="file-field">
                                        <a class="btn-floating purple-gradient mt-0 float-left max_resume">
                                          <i class="fa fa-cloud" aria-hidden="true"></i>
                                          <input type="file" name="candidate_resume" class="upload_resume">
                                        </a>
                                        <div class="file-path-wrapper">
                                          <span>Upload Resume</span>
                                        </div>
                                      </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-12 col-md-12 col-sm-12" id="key_skills">
                     <div>
                        <div class="profile_nav_head ">Key Skills <span><i class="fa fa-edit" data-toggle="modal" data-target="#SkillsModal"></i></span></div>
                        <div class="key_skills">
                            <?php if($candidates->skills!=''): ?>
                                <?php  $skl = explode(',',$candidates->skills) ?>
                                    <?php $__currentLoopData = $skl; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <span class="skills_list"><?php echo e($value); ?></span>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>        
                        </div>
                        <div class="modal" id="SkillsModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                    <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Key Skills</h4>
                                        <P>Tell recruiters what you know or what you are known for e.g. Direct Marketing, Oracle, Java etc. We will send you job recommendations based on these skills. Each skill is separated by a comma. Max limit is 250 character(s) including commas.</P>
                                    </div>                                 
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id='skillForm'>
                                            <div class="row">
                                                <div class="form-group col-md-12 select-border">
                                                    <?php /* $s = explode(',',$candidates->can_key_skills) */ ?>
                                                    <meta name="keySkill" content="<?php echo e($candidates->can_key_skills); ?>">
                                                    <select class="form-control" name="skills" onchange="getSkills(this.value,'skills')">
                                                        <option value="">Select</option>
                                                       <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($val->skills_id); ?>"><?php echo e($val->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>
                                            <button type="button" class="btn btn-primary btn_Save can_skill">Save</button>
                                            <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div> 
                                </div>  
                            </div>
                        </div>
                     </div>
                </div>
                <div class="col-lg-12 col-md-12 col-sm-12"  id="employment">
                    <div class="row marg0">
                        <div class="col-lg-6 col-md-6">
                            <div class="profile_nav_head">Employment</div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="add_edit">
                                <a class="addEmpModal">ADD EMPLOYMENT</a>
                            </div>
                        </div>
                        <?php $__currentLoopData = $employment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-12 col-md-12">
                            <div class="profile_nav_head"></div>
                            <div class="employ_heading">
                                <?php if($value->designation!=null){echo $value->designation;?> 
                            	<span><i class="fa fa-edit openEmployment"></i></span>
                                <?php }?>
                            </div>
                            <div class="office_name"><?php echo e($value->organization); ?></div>
                            <div class="office_name"><?php if($value->work_from_month!=null){?><?php echo e($value->work_from_month); ?> <?php echo e($value->work_from_year); ?> to <?php echo e(($value->current_company!=0) ? 'Present' : $value->work_till_month.' '.$value->work_till_year); ?> <?php }?></div>
                            <div class="office_name"><?php if($value->notice_period!=null){?>Available to join in <?php echo e($value->notice_period); ?> Months<?php }?></div>
                            <div class="office_name"><?php if($value->skills!=null){?><strong>Top 5 Key Skills:</strong><?php echo e($value->skills); ?><?php }?></div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <div class="modal" id="EmpModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                    <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Employment Details</h4>
                                    </div>
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="employmentForm">
                                            <div class="row">
                                                <div class="form-group col-md-12">
                                                    <label>Your Designation <span class="star"> *</span></label>
                                                    <input type="text" name="designation" class="form-control" value="" placeholder="Your Designation">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Your Organization <span class="star"> *</span></label>
                                                    <input type="text" name="organization" class="form-control" value="" placeholder="Your Organization">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Industry <span class="star"> *</span></label>
                                                    <select class="form-control select2 ind" name="emp_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(); ?>
														<option value="0">Other</option>					                                                    	
                                                    </select><br><br>
                                                    <input type="text" class="form-control" name="other_industry" id="otherInd" style="display: none" placeholder="Other Industry">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Functional Area <span class="star"> *</span></label>
                                                    <select class="form-control select2 fun_area" name="emp_functionl_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(); ?>
														<option value="0">Other</option>					                                                    	
                                                    </select><br><br>
                                                    <input type="text" class="form-control" name="other_functional_area" id="otherFun" style="display: none" placeholder="Other Functional Area">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Roles <span class="star"> *</span></label>
                                                    <select class="form-control select2 role" name="emp_role" id="emp_role">
														<option value="">Select</option>                                 	
                                                    </select><br><br>
                                                    <input type="text" class="form-control" name="other_roles" id="otherRole" style="display: none" placeholder="Other Role">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Is this your current company? <br>
                                                        <div class="radio col-md-6">
                                                            <label>
                                                                <input type="radio" name="current_company" value="1" checked style="width:20px; height:20px;" onclick="checkRadio(this.value)">Yes
                                                            </label>
                                                        </div>
                                                        <div class="radio col-md-6">
                                                            <label>
                                                                <input type="radio" name="current_company" value="0" style="width:20px; height:20px;" onclick="checkRadio(this.value)">No
                                                            </label>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Started Working From <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" name="work_from_year" class="form-control year" placeholder="Year">
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" name="work_from_month" class="form-control month" placeholder="Month">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Worked Till <span class="star"> *</span></label>
                                                </div>
                                                <div id="tillWrk" style="display: none;">
                                                    <div class="form-group col-md-6 select-border">
                                                        <input type="text"  name="work_till_year" class="form-control year" placeholder="Year">
                                                    </div>
                                                    <div class="form-group col-md-6 select-border">
                                                        <input type="text" name="work_till_month" class="form-control month" placeholder="Month">
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-12" id="preWork">
                                                    <input type="text" name="work_till" class="form-control" value="Present" readonly>
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Current salary  <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" class="form-control" name="salary_in_lacs" placeholder="In Lacs">
                                                </div>

                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" class="form-control" name="salary_in_thousand" placeholder="In Thousands">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label> Currency <span class="star"> *</span> <br>
                                                        <div class="radio col-md-6">
                                                            <label>
                                                                <input type="radio" name="currency" value="1" checked style="width:20px; height:20px;">Indian Rupees
                                                            </label>
                                                        </div>
                                                        <div class="radio col-md-6">
                                                            <label>
                                                                <input type="radio" name="currency" value="2" style="width:20px; height:20px;">US Dollars
                                                            </label>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Skills <span class="star"> *</span></label>
                                                    <select class="form-control select2" name="skill[]" multiple>
                                                    	<option value="">Select</option>
                                                        <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($val->skills_id); ?>"><?php echo e($val->skills); ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Describe your Job Profile </label>
                                                    <textarea class="form-control" rows="4" cols="50" name="job_profile" placeholder="Enter Here.."></textarea>
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Notice Period </label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control" name="notice_period">
                                                        <option value="">Select</option>
                                                        <option value="1">15 Days Or Less</option>
                                                        <option value="2">1 Month</option>
                                                        <option value="3">2 Month</option>
                                                        <option value="4">3 Month</option>
                                                        <option value="5">More Than 3 Month</option>
                                                        <option value="6">Serving Notice Period</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <button type="button"  class="btn btn-primary btn_Save submit_employment">Save</button>
                                            <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div> 
                                </div>  
                            </div>
                        </div>
                    </div>                     
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12" id="education">
                <div class="row marg0">
                    <div class="col-lg-8 col-md-8">
                        <div class="profile_nav_head">Education</div>
                        <?php $__currentLoopData = $education_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $ed = []; ?>
                            <?php $__currentLoopData = $education; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($val->edt_id==$value->edu_type): ?>
                                <?php $ed[] = $value->edu_type; ?>
                                <div class="employ_heading"><?php echo e($value->course_title); ?> - <?php echo e($value->spe_title); ?> <span><i class="fa fa-edit" style="cursor: pointer;" onclick="editEducation('<?php echo e($value->edu_id); ?>')"></i></span>
                                </div>
                                <div class="office_name"><?php echo e($value->uname); ?></div>
                                <div class="office_name"><?php echo e($value->edu_passing_year); ?> <?php if($value->edu_course_type=='1'){?>(Full Time)<?php }else if($value->edu_course_type=='2'){?>(Part Time)<?php }else if($value->edu_course_type=='3'){?>(Correspondence / Distance learning)<?php }?>
                                </div>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php if(!in_array($val->edt_id,$ed)): ?>
                                <div class="add_profile" onclick="openEducationModal('<?php echo e($val->edt_id); ?>')">Add <?php echo e($val->edu_type); ?></div>
                            <?php endif; ?>    
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="col-lg-4 col-md-4">
                        <div class="add_edit">
                            <a data-toggle="modal" data-target="#EducationModal">ADD EDUCATION</a>
                        </div>
                    </div>
                    <div class="modal" id="EducationModal">
                        <div class="modal-dialog">
                            <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Education Details</h4>
                                </div>  
                                <!-- Modal body -->
                                <div class="modal-body">
                                    <form method="post" id="educationForm">
                                        <input type="hidden" name="edu_id">
                                        <div class="row">
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Education <span class="star"> *</span></label>
                                            </div>
                                            <div class="form-group col-md-12 select-border">
                                                <input type="hidden" name="hide_education">
                                                <select class="form-control select2 edu" name="can_education" id="can_education">
                                                    <option value="">Select</option>
                                                    <?php $__currentLoopData = $education_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <?php $__currentLoopData = $education; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <?php if($value->edt_id!=$val->edu_type): ?>
                                                            <option value="<?php echo e($value->edt_id); ?>"><?php echo e($value->edu_type); ?></option>
                                                            <?php endif; ?>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                            </div>
                                            <div class="form-group col-md-12 mb-0">
                                                <label class="cotext">Course <span class="star"> *</span></label>
                                            </div>
                                            <div class="form-group col-md-12 select-border">
                                                <select class="form-control select2 cour" name="can_course" id="course">
                                                    <option value="">Select</option>
                                                </select><br><br>
                                                <input type="text" class="form-control" name="other_course" id="otherCor" style="display: none;" placeholder="Enter Other Course..">
                                            </div>
                                            <div id="divOne">
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Specialization <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2 spec" name="can_specialization" id="specialization">
                                                        <option value="">Select</option>
                                                    </select><br><br>
                                                    <input type="text" class="form-control" name="other_specialization" id="otherSpec" style="display: none" placeholder="Enter Other Specialization..">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>University <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="can_university">
                                                        <option value="">Select</option>
                                                        <?php $__currentLoopData = $university; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($value->uid); ?>"><?php echo e($value->uname); ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>                                          
                                                <div class="form-group col-md-12">
                                                    <label>Colleges/Institute </label>
    	                                                <input type="text" class="form-control" name="can_college" placeholder="Enter College/Institute">
    	                                        </div>
                                                <div class="form-group col-md-12">
                                                    <label> Course Type <span class="star"> *</span> <br>
    	                                                <div class="radio col-md-3">
    	                                                    <label>
    	                                                        <input type="radio" name="course_type" value="1" checked style="width:20px; height:20px;">Full Time
    	                                                    </label>
    	                                                </div>
    	                                                <div class="radio col-md-3">
    	                                                    <label>
    	                                                        <input type="radio" name="course_type" value="2" style="width:20px; height:20px;">Part Time
    	                                                    </label>
    	                                                </div>
    	                                                <div class="radio col-md-6">
    	                                                    <label>
    	                                                        <input type="radio" name="course_type" value="3" style="width:20px; height:20px;">Correspondence/Distance learning
    	                                                    </label>
    	                                                </div>
    	                                            </label>
                                                </div>
                                            </div>
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Passing Out Year <span class="star"> *</span></label>
                                            </div>
                                            <div class="form-group col-md-12 select-border">
                                                <input type="text" name="passing_year" class="form-control year" placeholder="Passing Year">
                                            </div>
                                            <div id="divTwo">
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Grading System </label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2 grade" name="grade_system">
                                                        <option value="">Select</option>
                                                        <option value="1"> Scale 10 Grading System </option>
                                                        <option value="2"> Scale 4 Grading System </option>
                                                        <option value="3"> % Marks of 100 Maximum </option>
                                                        <option value="4"> Course Requires a Pass </option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div id="divThree">   
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>School Medium<span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="school_medium">
                                                        <option value="">Select</option>
                                                        <?php $__currentLoopData = $school_medium; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($value->sm_id); ?>"><?php echo e($value->sm_title); ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                            </div>
                                            <div id="divFive">     
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Total Marks<span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <input type="number" name="total_marks" class="form-control" placeholder="Marks In Percentage">
                                                </div>
                                                <div id="divFour">
                                                    <div class="form-group col-md-12 mb-0">
                                                        <label>English Marks<span class="star"> *</span></label>
                                                    </div>
                                                    <div class="form-group col-md-12 select-border">
                                                        <input type="number" name="english_marks" class="form-control" placeholder="Marks (Out Of 100)">
                                                    </div>
                                                    <div class="form-group col-md-12 mb-0">
                                                        <label>Maths Marks<span class="star"> *</span></label>
                                                    </div>
                                                    <div class="form-group col-md-12 select-border">
                                                        <input type="number" name="math_marks" class="form-control" placeholder="Marks (Out Of 100)">
                                                    </div>
                                                </div>
                                            </div>  
                                        </div>
                                        <button type="button" class="btn btn-primary btn_Save canEdu">Save</button>
                                        <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>    
                                    </form>
                                </div>  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12" id="it_skills">
                <div>
                    <div class="row marg0">
                        <div class="col-lg-6 col-md-6">
                            <div class="profile_nav_head">IT Skills</div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="add_edit">
                                <a data-toggle="modal" data-target="#ITSkillsModal">ADD DETAILS</a>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12">
                            <?php if(count($it_skill)>0): ?>
                            <div class="table-responsive">          
                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th>Skills</th>
                                            <th>Version</th>
                                            <th>Last Used</th>
                                            <th>Experience</th>
                                            <th></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $it_skill; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td>
                                                <div class="office_name"><?php echo e(strtoupper($value->skills)); ?></div>
                                            </td>
                                            <td>
                                                <div class="office_name"><?php echo e($value->skill_version); ?></div>
                                            </td>
                                            <td>
                                                <div class="office_name"><?php echo e($value->skill_last_used); ?></div>
                                            </td>
                                            <td>
                                                <div class="office_name"><?php echo e($value->skill_experience_year); ?> Years <?php echo e($value->skill_experience_month); ?> Months </div>
                                            </td>
                                            <td>
                                                <span><i class="fa fa-edit" onclick="editItSkill('<?php echo e($value->skill_id); ?>')"></i></span>
                                            </td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                            <?php endif; ?>    
                        </div>
                    </div>
                    <div class="modal" id="ITSkillsModal">
                        <div class="modal-dialog">
                            <div class="modal-content custm_modal">
                               <!-- Modal Header -->
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">IT Skills <span>Add 8%</span></h4>
                                    <P>Specify details about programming languages (such as Java, Python, C/C++, Oracle, SQL etc), softwares (Microsoft Word, Excel, Tally etc) or any other software related knowledge.</P>
                                </div>  
                                <!-- Modal body -->
                                <div class="modal-body">
                                    <form method="post" id="itSkillForm">
                                        <div class="row">
                                            <input type="hidden" name="skill_id">
                                            <div class="form-group col-md-12">
                                                <label>IT Skills <span class="star"> *</span></label>
                                                <input type="text" class="form-control" name="it_skill" value="" placeholder="Please enter IT Skills">
                                            </div>
                                            <div class="form-group col-md-6">
                                                <label>Version </label>
                                                <input type="text" class="form-control" name="version" value="" placeholder="Version">
                                            </div>
                                            <div class="col-md-6 mb-0">
                                                <label>Last Used </label>
                                            </div>
                                            <div class="form-group col-md-6 select-border">
                                                <input type="text" name="last_used" class="form-control year" placeholder="Last Used Year">
                                            </div>
                                            <div class="col-md-12 mb-0">
                                                <label>Experience </label>
                                            </div>
                                            <div class="form-group col-md-6 select-border">
                                                <input type="number" name="exp_year" class="form-control " placeholder="Enter Year">
                                            </div>
                                            <div class="form-group col-md-6 select-border">
                                                <input type="number" name="exp_month" class="form-control " placeholder="Enter Month">
                                            </div>                                             
                                        </div>                     
                                        <button type="button" class="btn btn-primary btn_Save itSkill">Save</button>
                                        <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>    
                                    </form>
                                </div>  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12" id="projects">
                <div >
                    <div class="row marg0">
                        <div class="col-lg-6 col-md-6">
                            <div class="profile_nav_head">Projects</div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="add_edit">
                                <a data-toggle="modal" data-target="#ProjectModal">ADD PROJECT</a>
                            </div>
                        </div>
	                    <div class="col-lg-12 col-md-12">
                            <?php if(count($project)==0): ?>
                            <p>Add details about projects you have done in college, internship or at work.</p>
                            <?php else: ?> 
                                <?php $__currentLoopData = $project; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="office_name"><strong><?php echo e($value->project_title); ?></strong>&nbsp;&nbsp;
                                	<a href="javascript:;" onclick="editproject('<?php echo e($value->project_id); ?>')"><i class="fa fa-edit"></i></a> | 
                                	<a href="javascript:;" onclick="deleteProject('<?php echo e($value->project_id); ?>')"><i class="fa fa-times" aria-hidden="true"></i></a>
                                </div>
                                <div class="office_name"><?php echo e($value->project_client); ?> - <?php echo e(($value->project_site=='0') ? '(Offsite)':'(Onsite)'); ?></div>
                                <div class="office_name"><?php echo e(date('M',strtotime($value->project_work_from_month))); ?> <?php echo e($value->project_work_from_year); ?> to <?php if($value->project_status=='1'){?>Present <?php }else{?> <?php echo e(date('M',strtotime($value->project_work_till_month))); ?> <?php echo e($value->project_work_till_year); ?><?php } if($value->project_emp_nature=='1'){?>(Full Time)<?php }else if($value->project_emp_nature=='2'){?>(Part Time)<?}else{?>(Contractual)<?php }?></div>
                                <div class="office_name"><?php echo e(substr($value->project_details, 0, 150)); ?></div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="modal" id="ProjectModal">
                        <div class="modal-dialog">
                            <div class="modal-content custm_modal">
                            <!-- Modal Header -->
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">Add Project</h4>                                    
                                </div>  
                            <!-- Modal body -->
                                <div class="modal-body">
                                    <form method="post" id="projectForm">
                                        <input type="hidden" name="project_id">
                                        <div class="row">
                                            <div class="form-group col-md-12">
                                                <label>Project Title <span class="star"> *</span></label>
                                                <input type="text" class="form-control" name="project_title" placeholder="Enter Project Title">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Client<span class="star"> *</span></label>
                                                <input type="text" class="form-control" name="client_name" placeholder="Enter Client Name">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label> Project Status <span class="star"> *</span> <br>
	                                                <div class="radio col-md-6">
	                                                    <label>
	                                                        <input type="radio" style="width:20px; height:20px;" name="project_status" value="1" checked onclick="checkProject(this.value)"> In Progress
	                                                    </label>
	                                                </div>
	                                                <div class="radio col-md-6">
	                                                    <label>
	                                                        <input type="radio" style="width:20px; height:20px;" name="project_status" value="2" onclick="checkProject(this.value)"> Finished
	                                                    </label>
	                                                </div>
	                                            </label>
                                            </div>                                              
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Started Working From <span class="star"> *</span></label>
                                            </div>
                                            <div class="form-group col-md-6 select-border">
                                                <input type="text" name="project_start_year" class="form-control year" placeholder="Enter Year">
                                            </div>
                                            <div class="form-group col-md-6 select-border">
                                                <input type="text" name="project_start_month" class="form-control month" placeholder="Enter Month">
                                            </div>
                                            <div class="form-group col-md-12 mb-0">
                                                <label>Worked Till <span class="star"> *</span></label>
                                            </div>
                                            <div id="tillProj" style="display: none;">
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" name="project_till_year" class="form-control year" placeholder="Enter Year">
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="text" name="project_till_month" class="form-control month" placeholder="Enter Month">
                                                </div>
                                            </div>
                                            <div class="form-group col-md-12" id="preProj">
                                                <input type="text" class="form-control " value="Present" placeholder="Present" readonly>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Details of Project <span class="star"> *</span></label>
                                                <textarea rows="4" cols="67" class="form-control" name="project_detail"> </textarea>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Project Location</label>
                                                <input type="text" name="project_location" class="form-control" placeholder="Enter Project Location">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label> Project Site <br>
                                                    <div class="radio col-md-6">
                                                        <label>
                                                            <input type="radio" style="width:20px; height:20px;" name="project_site" value="0" checked> Off Site
                                                        </label>
                                                    </div>
                                                    <div class="radio col-md-6">
                                                        <label>
                                                            <input type="radio" style="width:20px; height:20px;" name="project_site" value="1"> On Site
                                                        </label>
                                                    </div>
                                                </label>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label> Nature Of Employee <br>
                                                    <div class="radio col-md-4">
                                                        <label>
                                                            <input type="radio" style="width:20px; height:20px;" name="emp_nature" value="1" checked >Full Time
                                                        </label>
                                                    </div>
                                                    <div class="radio col-md-4">
                                                        <label>
                                                            <input type="radio" style="width:20px; height:20px;" name="emp_nature" value="2" > Part Time
                                                        </label>
                                                    </div>
                                                    <div class="radio col-md-4">
                                                        <label>
                                                            <input type="radio" style="width:20px; height:20px;" name="emp_nature" value="3" > Contractual
                                                        </label>
                                                    </div>
                                                </label>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Team Size</label>
                                                <input type="number" name="team_size" class="form-control" placeholder="Enter Team Size">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Role</label>
                                                <select class="form-control select2 role" name="project_role">
                                                    <option value="">Select</option>
                                                    <?php $__currentLoopData = $project_role; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($role->pr_id); ?>"><?php echo e($role->role); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="0">Other</option>
                                                </select><br><br>
                                                <input type="text" class="form-control" name="other_project_role" id="otherProjRole" style="display: none;">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Role Description</label>
                                                <textarea rows="4" cols="67" class="form-control" name="role_description"></textarea>
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Skill Used</label>
                                                <select class="form-control" name="skill_used" onclick="getSkills(this.value,'skill_used')">
                                                    <option value="">Select</option>
                                                    <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $skill): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($skill->skills_id); ?>"><?php echo e($skill->skills); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                                <input type="hidden" name="totalSkillUsed">
                                            </div>
                                            <div class="col-md-12 col-sm-12 col-xs-12">
                                                <p id="collectPetfrndTypes" class="skill_used"></p>
                                            </div>
                                        </div>                     
                                        <button type="button" class="btn btn-primary btn_Save project">Save</button>
                                        <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>                                      
                                    </form>
                                </div>  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12"  id="profile_summary">
                <div>
                    <div class="row marg0">
                        <div class="col-lg-6 col-md-6">
                            <div class="profile_nav_head">Profile Summary </div>
                        </div>
	                    <div class="col-lg-6 col-md-6">
                            <div class="add_edit">
                                <a data-toggle="modal" data-target="#ProjectSummModal"> <?php if($candidates->can_profile_summery==''): ?>ADD <?php else: ?> EDIT <?php endif; ?> PROFILE SUMMARY</a>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12">
                            <?php if($candidates->can_profile_summery==''): ?>
                            <p>Your Profile Summary should mention the highlights of your career and education, what your professional interests are, and what kind of a career you are looking for. Write a meaningful summary of more than 50 characters.</p>
                            <?php else: ?>
                                <?php echo e($candidates->can_profile_summery); ?>

                            <?php endif; ?>    
                        </div>
                    </div>
                    <div class="modal" id="ProjectSummModal">
                        <div class="modal-dialog">
                            <div class="modal-content custm_modal">
                            <!-- Modal Header -->
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">Profile Summary </h4>
                                    <P>Your Profile Summary should mention the highlights of your career and education, what your professional interests are, and what kind of a career you are looking for. Write a meaningful summary of more than 50 characters.</P>
                                </div>  
                                <!-- Modal body -->
                                <div class="modal-body">
                                    <form method="post" id="profileForm">
                                        <div class="row">
                                            <div class="form-group col-md-12">
                                                <textarea rows="4" cols="67" name="profile_summary" class="form-control"><?php echo e($candidates->can_profile_summery); ?> </textarea>
                                            </div>
                                        </div>                      
                                        <button type="button" class="btn btn-primary btn_Save summary">Save</button>
                                        <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>                                      
                                    </form>
                                </div>  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12"  id="social_link">
                <div>
                    <div class="row marg0">
                        <div class="col-lg-6 col-md-6">
                            <div class="profile_nav_head">Online Profile</div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="add_edit">
                                <a data-toggle="modal" data-target="#ProfileModal">ADD</a>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12">
                            <span class="social-icon">
                                <a href="<?php echo e($candidates->can_fb_link); ?>" target="_blank" class="btn-floating btn-fb" type="button" role="button"><i class="fa fa-facebook-f"></i></a>
                                <!--Twitter-->
                                <a href="<?php echo e($candidates->can_linkedin_link); ?>" target="_blank" class="btn-floating btn-tw" type="button" role="button"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
                                <!--Google +-->
                                <a href="<?php echo e($candidates->can_instagram_link); ?>" target="_blank" class="btn-floating btn-gplus" type="button" role="button"><i class="fa fa-instagram" aria-hidden="true"></i> </a>
                                <a href="<?php echo e($candidates->can_behance_link); ?>" target="_blank" class="btn-floating btn-gplus" type="button" role="button"><i class="fa fa-behance" aria-hidden="true"></i> </a>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="modal" id="ProfileModal">
                    <div class="modal-dialog">
                        <div class="modal-content custm_modal">
                        <!-- Modal Header -->
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal">&times;</button>
                                <h4 class="modal-title">Social Link</h4>                                 
                            </div>  
                            <!-- Modal body -->
                            <div class="modal-body">
                                <form method="post" id="socialForm">
                                    <div class="row">
                                        <div class="form-group col-md-12">
                                            <label>Facebook Link </label>
                                            <input type="text" class="form-control" name="facebook_link" value="<?php echo e($candidates->can_fb_link); ?>" placeholder="Enter Social Profile URL">
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label>Linkedin Link </label>
                                            <input type="text" class="form-control" name="linkedin_link" value="<?php echo e($candidates->can_linkedin_link); ?>" placeholder="Enter Social Profile URL">
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label>Instagram Link</label>
                                            <input type="text" class="form-control" name="insta_link" value="<?php echo e($candidates->can_instagram_link); ?>" placeholder="Enter Social Profile URL">
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label>Behance Link </label>
                                            <input type="text" class="form-control" name="behance_link" value="<?php echo e($candidates->can_behance_link); ?>" placeholder="Enter Social Profile URL">
                                        </div>
                                    </div>                  
                                    <button type="button" class="btn btn-primary btn_Save social">Save</button>
                                    <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>                                      
                                </form>
                            </div>  
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12" id="career_profile">
                <div>
                    <div class="row marg0">
                        <div class="col-lg-12 col-md-12">
                            <div class="profile_nav_head">Desired Career Profile <span><i data-toggle="modal" data-target="#CareerProfileModal" class="fa fa-edit"></i></span>
                            </div>
                        </div>                        
                        <div class="col-lg-6 col-md-6">
                            <div class="Desired_heading">Industry</div>
                            <div class="office_name"><?php echo e($desired_career->indu_title); ?></div>
                            <div class="Desired_heading">Role</div>
                            <div class="office_name"><?php echo e($desired_career->sub_functional_title); ?></div>
                            <div class="Desired_heading">Employment Type</div>
                            <div class="office_name"><?php if($desired_career->cdc_employment_type!=''){?><?php echo e(($desired_career->cdc_employment_type=='1') ? 'Full Time' : 'Part Time'); ?><?php }?></div>
                            <div class="Desired_heading">Expected Salary</div>
                            <div class="office_name"> <?php echo e(($desired_career->cdc_expected_salary_lac!='') ? 'INR '.$desired_career->cdc_expected_salary_lac.' Lakh(s)' : ''); ?>  <?php echo e(($desired_career->cdc_expected_salary_thousands!='') ? $desired_career->cdc_expected_salary_thousands.' Thousand' : ''); ?> </div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="Desired_heading">Functional Area</div>
	                            <div class="office_name"><?php echo e($desired_career->fun_functional_area); ?></div>
                                <div class="Desired_heading">Job Type</div>
                                <div class="office_name"><?php $j=explode(',',$desired_career->cdc_job_type);foreach($j as $v){ if($v=='1'){echo 'Permanent ,';}if($v=='2'){echo 'Contractual';}}?></div>
                                <div class="Desired_heading">Desired Shift</div>
                                <div class="office_name"><?php if($desired_career->cdc_preferred_shift=='1'){echo 'Day';}else if($desired_career->cdc_preferred_shift=='2'){echo 'Night';}else if($desired_career->cdc_preferred_shift=='3'){echo 'Flexible';}?></div>
                                <div class="Desired_heading">Desired Location</div>
                                <div class="office_name"><?php echo e($desired_career->city_name); ?></div>
                            </div>
                        </div>
                        <div class="modal" id="CareerProfileModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Desired Career Profile</h4>
                                        <p>This information will help the recruiters and Naukri know about your job preferences. This will help us personalize your job recommendations.</p>
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="desiredForm">
                                            <div class="row">
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Industry <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2 desInd" name="desired_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 if($desired_career->cdc_industry==$value->indu_id){echo 'selected';}?>><?php echo e($value->indu_title); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="0">Other</option>
                                                    </select><br><br>
                                                    <input type="text" name="other_desired_industry" class="form-control" id="otherDesInd" style="display: none;" placeholder="Enter Other Industry">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Functional Area / Department <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2 desFun" name="desired_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 if($desired_career->cdc_functional_area==$value->fun_id){echo 'selected';}?>><?php echo e($value->fun_functional_area); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="0">Other</option>
                                                    </select><br><br>
                                                    <input type="text" name="other_desired_function" class="form-control" id="otherDesFun" style="display: none;" placeholder="Enter Other Functional Area">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Role <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <input type="hidden" name="role_id" value="<?php echo e($desired_career->cdc_sub_functional_area); ?>">
                                                    <select class="form-control select2 desRol" name="desired_role">
                                                      <option value=""> Select </option>
                                                    </select><br><br>
                                                    <input type="text" name="other_desired_role" class="form-control" id="otherDesRole" style="display: none;" placeholder="Enter Other Role">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Job Type</label>
                                                    <div class="form-check  col-md-4">
                                                        <label>
                                                            <input class="form-check-input position-static" type="checkbox" name="job_type[]" value="1" style="width:20px; height:20px;" <?php if(in_array('1',explode(',', $desired_career->cdc_job_type))){echo "checked";}?>>
                                                           Permanent
                                                        </label>
                                                    </div>
                                                    <div class="form-check  col-md-4">
                                                        <label>
                                                            <input class="form-check-input position-static" type="checkbox" name="job_type[]" value="2" style="width:20px; height:20px;" <?php if(in_array('2',explode(',', $desired_career->cdc_job_type))){echo "checked";}?>>
                                                            Contractual
                                                        </label>
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Employment Type</label>
                                                    <div class="form-check  col-md-4">
                                                        <label>
                                                            <input class="form-check-input position-static" type="checkbox" name="emp_type[]" value="1" style="width:20px; height:20px;" <?php if(in_array('1',explode(',', $desired_career->cdc_employment_type))){echo "checked";}?>>
                                                           Full Time
                                                        </label>
                                                    </div>
                                                    <div class="form-check  col-md-4">
                                                        <label>
                                                            <input class="form-check-input position-static" type="checkbox" name="emp_type[]" value="2" style="width:20px; height:20px;" <?php if(in_array('2',explode(',', $desired_career->cdc_employment_type))){echo "checked";}?>>
                                                            Part Time
                                                        </label>
                                                    </div>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Preferred Shift <br>
                                                        <div class="radio col-md-4">
                                                            <label>
                                                                <input type="radio" name="shit"  value="1" style="width:20px; height:20px;" <?php if($desired_career->cdc_preferred_shift=='1'){echo 'checked';}else{echo 'checked';}?>>Day
                                                            </label>
                                                        </div>
                                                        <div class="radio col-md-4">
                                                            <label>
                                                                <input type="radio" name="shift" value="2" style="width:20px; height:20px;" <?php if($desired_career->cdc_preferred_shift=='2'){echo 'checked';}?>>Night
                                                            </label>
                                                        </div>
                                                         <div class="radio col-md-4">
                                                            <label>
                                                                <input type="radio" name="shift" value="3" style="width:20px; height:20px;" <?php if($desired_career->cdc_preferred_shift=='3'){echo 'checked';}?>>Flexible
                                                            </label>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Expected Salary <br>
                                                        <div class="radio col-md-4">
                                                            <label>
                                                                <input type="radio" name="salary_currency" value="1" style="width:20px; height:20px;" <?php if($desired_career->cdc_expected_salary_currency=='1'){echo 'checked';}else{echo 'checked';}?>>Indian Rupees
                                                            </label>
                                                        </div>
                                                        <div class="radio col-md-4">
                                                            <label>
                                                                <input type="radio" name="salary_currency" value="2" style="width:20px; height:20px;" <?php if($desired_career->cdc_expected_salary_currency=='2'){echo 'checked';}?>>US Dollars
                                                            </label>
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="number" name="exp_sal_in_lacs" class="form-control" value="<?php echo e($desired_career->cdc_expected_salary_lac); ?>" placeholder="Enter Salary In Lacs">
                                                </div>
                                                <div class="form-group col-md-6 select-border">
                                                    <input type="number" name="exp_sal_in_thousand" class="form-control" value="<?php echo e($desired_career->cdc_expected_salary_thousands); ?>"  placeholder="Enter Salary In Thousand">
                                                </div>
                                                <div class="form-group col-md-12 mb-0">
                                                    <label>Desired Location <span class="star"> *</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="desired_city[]" multiple>
                                                      <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(in_array($value->id, explode(',',$desired_career->cdc_desired_location))){echo 'selected';}?>><?php echo e($value->name); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save desired">Save</button>
                                            <button type="button"  class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>  
    </div>
</section>
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/candidate_profile.js"></script>
<script type="text/javascript">

	$(document).ready(function(){

        // $('.file-upload').file_upload();
        if($('input[name="current_company"]').val()==1)
        {
            $('#preWork').show();
            $('#tillWrk').hide();
        }else
        {
            $('#tillWrk').show();
            $('#preWork').hide();
        }

        checkProject($('input[name="project_status"]').val());

        var fun = $('select[name="desired_functional_area"]').val();
        var id = $('input[name="role_id"]').val();
        if(fun!='')
        {
            if(fun=='0')
            {
                $('#otherDesFun').show();
            }else
            {
                $('#otherDesFun').hide();
            }

            $.ajax({
                type:'post',
                url:"<?php echo e(url('/')); ?>/getRoles",
                data:{'_token':'<?php echo e(csrf_token()); ?>','fun_id':fun},
                dataType:'json',
                success:function(res)
                {
                    // console.log(fun,res);
                    var role = '';
                    role += '<option value="">Select</option>';
                    if(res.length>0)
                    {
                        for(var i=0;i<res.length;i++)
                        { 
                            var selected = (res[i].sub_id==id) ? 'selected': '';
                            role += '<option '+selected+' value='+res[i].sub_id+'>'+res[i].sub_functional_title+'</option>';
                        }
                    }
                    role += '<option value="0">Other</option>';

                    $('select[name="desired_role"]').html(role);
                }
            });
        }

    });

    function checkProject(id)
    {
        if(id=='1')
        {
          $('#preProj').show();   
          $('#tillProj').hide();   
        }else
        {
          $('#tillProj').show();   
          $('#preProj').hide();
        }
    }

    $('.desInd').change(function(){
        if(this.value=='0')
        {
            $('#otherDesInd').show();
        }else
        {
            $('#otherDesInd').hide();
        }
    });

    $('.desFun').change(function(){
        if(this.value=='0')
        {
            $('#otherDesFun').show();
        }else
        {
            $('#otherDesFun').hide();
        }
    });

    $('.desRol').change(function(){
        if(this.value=='0')
        {
            $('#otherDesRole').show();
        }else
        {
            $('#otherDesRole').hide();
        }
    });

    $('.grade').change(function(){
        if(this.value!='4'){
            $('#divFive').show();
        }else{
            $('#divFive').hide();
        }
    });

    $('.role').change(function(){
        if(this.value=='0')
        {
            $('#otherProjRole').show();
        }else
        {
            $('#otherRole').hide();
        }
    });

    $('.spec').change(function(){
        if(this.value=='0')
        {
            $('#otherSpec').show();
        }else
        {
            $('#otherSpec').hide();
        }
    });    

    function checkRadio(val)
    {
        if(val==1)
        {
            $('#preWork').show();
            $('#tillWrk').hide();
        }else
        {
            $('#tillWrk').show();
            $('#preWork').hide();
        }
    }

   /* Edit*/

   $('#edit').click(function(){

  $('#edit').hide();

  $('td').each(function(){

    var content = $(this).html();

    $(this).html('<textarea>' + content + '</textarea>');

  });  

  

  $('#save').show();

  $('.info').fadeIn('fast');

});



$('#save').click(function(){

  $('#save, .info').hide();

  $('textarea').each(function(){

    var content = $(this).val();//.replace(/\n/g,"<br>");

    $(this).html(content);

    $(this).contents().unwrap();    

  }); 



  $('#edit').show(); 

});





$("#dropdownlist").change(function () {

  var numInputs = $(this).val();

  for (var i = 0; i < numInputs; i++)

    $("#inputArea").append("<input type='text'/>");

});


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