<?php $__env->startSection('content'); ?>
  <!-- page content -->
<div class="right_col" role="main">
  <div class="row x_panel">
    <div class="col-md-12 col-sm-12 col-xs-12">
    <h1>Employments</h1>

<form action="<?php echo url('/'); ?>/admin/can_employments/add/<?php echo $rel_field; ?>/<?php echo $rel_id; ?>" id="" class="form-horizontal " method="post" enctype="multipart/form-data">
<?php echo e(csrf_field()); ?>


    


    <!-- Designation Start -->
    <div class="form-group">
      <label for="designation" class="col-sm-3 control-label"> Designation <span style="color: red">*</span></label>
      <div class="col-sm-4">
        <input type="text" class="form-control" id="designation" name="designation" value="<?php echo e(old('designation')); ?>">
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("designation")); ?></div>
      </div>
    </div> 
    <!-- Designation End -->


    


    <!-- Organization Start -->
    <div class="form-group">
      <label for="organization" class="col-sm-3 control-label"> Organization <span style="color: red">*</span></label>
      <div class="col-sm-4">
        <input type="text" class="form-control" id="organization" name="organization" value="<?php echo e(old('organization')); ?>">
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("organization")); ?></div>
      </div>
    </div> 
    <!-- Organization End -->


    

 <!-- Current_company Start -->
 <div class="form-group">
          <label class="col-sm-3 control-label">Current Company <span style="color: red">*</span></label>
          <div class="col-sm-4">
            <span style="margin-right:20px;"><input type="radio" style="width:20px; height:20px;" name="current_company" value="1"   <?php if(old('current_company')=='1'): ?> checked <?php endif; ?> checked onclick="checkRadio()"> Yes </span>
            <span style="margin-right:20px;"><input type="radio" style="width:20px; height:20px;" name="current_company" value="0"   <?php if(old('current_company')=='0'): ?> checked <?php endif; ?> onclick="checkRadio()"> No </span>
        </div>
        <div class="col-sm-5">
        <div class="label label-danger"><?php echo e($errors->first("current_company")); ?></div>
      </div>
    </div>
      <!-- Current_company End -->




    <!-- Work_from_year Start -->
    <div class="form-group">
      <label for="work_from_year" class="col-sm-3 control-label"> Work From <span style="color: red">*</span></label>
      <div class="col-sm-2">
        <input type="text" class="form-control year" id="work_from_year" name="work_from_year" value="<?php echo e(old('work_from_year')); ?>" placeholder="Year">
      </div>
      <div class="col-sm-2">
        <input type="text" class="form-control month" id="work_from_month" name="work_from_month" value="<?php echo e(old('work_from_month')); ?>" placeholder="Month">
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("work_from_year")); ?></div>
      <div class="label label-danger"><?php echo e($errors->first("work_from_month")); ?></div>
      </div>
    </div> 
    <!-- Work_from_year End -->
    


    <!-- Work_till_year Start -->
    <div class="form-group">
      <label for="work_till_year" class="col-sm-3 control-label"> Work Till <span style="color: red">*</span></label>
      <div class="col-sm-4" id="pdiv">
        <input type="text" class="form-control" id="work_till" name="work_till" value="Present" placeholder="Year" readonly style="background-color: #fff;">
      </div>
      <div id="radioDiv" style="display: none;">
        <div class="col-sm-2">
          <input type="text" class="form-control year" id="work_till_year" name="work_till_year" value="<?php echo e(old('work_till_year')); ?>" placeholder="Year">
        </div>
        <div class="col-sm-2">
          <input type="text" class="form-control month" id="work_till_month" name="work_till_month" value="<?php echo e(old('work_till_month')); ?>" placeholder="Month">
        </div>
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("work_till_year")); ?></div>
      <div class="label label-danger"><?php echo e($errors->first("work_till_month")); ?></div>
      </div>
    </div> 
    <!-- Work_till_year End -->
    


    <!-- Current_salary_lacs Start -->
    <div class="form-group">
      <label for="current_salary_lacs" class="col-sm-3 control-label"> Current Salary <span style="color: red">*</span></label>
      <div class="col-sm-2">
        <input type="number" class="form-control" id="current_salary_lacs" name="current_salary_lacs" value="<?php echo e(old('current_salary_lacs')); ?>" placeholder="In Lacs">
      </div>
      <div class="col-sm-2">
        <input type="number" class="form-control" id="current_salary_thousand" name="current_salary_thousand" value="<?php echo e(old('current_salary_thousand')); ?>" placeholder="In Thousand">
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("current_salary_lacs")); ?></div>
      <div class="label label-danger"><?php echo e($errors->first("current_salary_thousand")); ?></div>
      </div>
    </div> 
    <!-- Current_salary_lacs End -->

    

 <!-- Currency Start -->
 <div class="form-group">
          <label class="col-sm-3 control-label">Currency</label>
          <div class="col-sm-4">
            <span style="margin-right:20px;"><input type="radio" style="width:20px; height:20px;" name="currency" value="1"   <?php if(old('currency')=='1'): ?> checked <?php endif; ?> checked> Indian Rupees </span>
            <span style="margin-right:20px;"><input type="radio" style="width:20px; height:20px;" name="currency" value="2"   <?php if(old('currency')=='2'): ?> checked <?php endif; ?> > Us Dollers </span>
        </div>
        <div class="col-sm-5">
        <div class="label label-danger"><?php echo e($errors->first("currency")); ?></div>
      </div>
    </div>
      <!-- Currency End -->




    <!-- Skill Start -->
    <div class="form-group">
      <label for="skill" class="col-sm-3 control-label"> Skills </label>
      <div class="col-sm-4">
        <select class="form-control select2" id="skill" name="skill" multiple>
          <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <option value="<?php echo e($value->skills_id); ?>"><?php echo e($value->skills); ?></option>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("skill")); ?></div>
      </div>
    </div> 
    <!-- Skill End -->


    

                <!-- Job_profile Start -->
            <div class="form-group">
              <label for="job_profile" class="col-sm-3 control-label"> Job Profile </label>
              <div class="col-sm-4">
                <textarea class="form-control" id="job_profile" name="job_profile"><?php echo e(old('job_profile')); ?></textarea>
              </div>
              <div class="col-sm-5">
         <div class="label label-danger"><?php echo e($errors->first("job_profile")); ?></div>
      </div>
            </div> 
            <!-- Job_profile End -->

            


    <!-- Notice_period Start -->
    <div class="form-group">
      <label for="notice_period" class="col-sm-3 control-label"> Notice Period <span style="color: red">*</span></label>
      <div class="col-sm-4">
        <select class="form-control" id="notice_period" name="notice_period">
          <option value="">Select</option>
          <option value="1" <?php echo (old('notice_period')=='1') ? "selected":"";?>>15 Days Or Less</option>
          <option value="2" <?php echo (old('notice_period')=='2') ? "selected":"";?>>1 Months</option>
          <option value="3" <?php echo (old('notice_period')=='3') ? "selected":"";?>>2 Months</option>
          <option value="4" <?php echo (old('notice_period')=='4') ? "selected":"";?>>3 Months</option>
          <option value="5" <?php echo (old('notice_period')=='5') ? "selected":"";?>>More than 3 Months</option>
          <option value="6" <?php echo (old('notice_period')=='6') ? "selected":"";?>>Serving Notice Period</option>
        </select>
      </div>
      <div class="col-sm-5">
      <div class="label label-danger"><?php echo e($errors->first("notice_period")); ?></div>
      </div>
    </div> 
    <!-- Notice_period End -->


    

    <!-- Status Start -->
    <div class="form-group">
        <label class="control-label col-md-3">Status</label>
         <div class=" col-md-4 switch">
                    <div class="onoffswitch">
     <input type="checkbox" class="onoffswitch-checkbox" checked data-on-label="Yes" data-off-label="No"  name="status" value="1" id="status" <?php echo 1; ?> style="width:20px; height:20px;"/>
    <?php echo e($errors->first("status")); ?>

                        <label class="onoffswitch-label" for="status">
                            <span class="onoffswitch-switch"></span>
                            <span class="onoffswitch-inner"></span>
                        </label>
                    </div>
                </div>

      </div>
      <!-- Status End -->



  <div class="form-group">
    <div class="col-sm-3" >
      </div>
      <div class="col-sm-6">
    <input type="hidden" name="rel_field" id="rel_field" value="<?php echo $rel_field; ?>">
    <input type="hidden" name="rel_id" id="rel_id" value="<?php echo $rel_id; ?>">
    <button type="reset" class="btn btn-default ">Reset</button>
    <button type="submit" class="btn btn-info ">Submit</button>
      </div>
        <div class="col-sm-3" >
      </div>
  </div>
</form>



    </div>
  </div>
</div>
<!-- /page content -->
<script type="text/javascript">
  $(document).ready(function(){
    checkRadio();
  });

  function checkRadio()
  {
    var radio = $('input[name="current_company"]:checked').val();
    if(radio==1)
    {
      $('#pdiv').show();
      $('#radioDiv').hide();
    }
    else
    {
      $('#pdiv').hide();
      $('#radioDiv').show();     
    }
  }
</script>
<?php $__env->stopSection(); ?>


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