<?php $this->load->view('admin/common/header'); ?>
<div class="dashborder-content">

<div class="container-fluid">
<div class="row">
<?php $this->load->view('admin/common/sidebar'); ?>

<div class="col-md-10">
<div class="row">


<div class="row">

<div class="col-md-12 full-table">
<div class="panel panel-bd lobidrag lobipanel lobipanel-sortable " data-inner-id="6lbDiPQUBj" data-index="0">
<div class="panel-heading ui-sortable-handle">
<div class="panel-title" style="max-width: calc(100% - 180px);">

<div class="row">

<div class="col-md-6" style="padding-top: 4px;"><h4> CV Feedback Pending</h4></div>
<div class="col-md-6" style="text-align:right;">
<form class="form-inline" >


<div class="input-group" style="width:100% !important;">

<input type="text" name="search" class="form-control" placeholder="Search Here" style="font-size:12px;">
<div class="input-group-addon btn"><i class="fa fa-search"></i>
</div>
</div>


</form>

</div>

</div>
</div>
</div>
<div class="panel-body">

<div class="table-responsive">

<table class="table table-bordered table-hover">
<thead>
<tr>
<th>S.no.</th>
<th>JobId</th>
<th>Submission Date</th>
<th>Position</th>
<th>Job Location</th>
<th>Candidate name</th>
<th>Contact no.</th>
<th>Email id</th>
<th>Experience</th>
<th>Current CTC</th>
<th>Expected CTC</th>
<th>Notice Period</th>
<th>Current company</th>
<th>Status</th>
<th>Remark</th>
</tr>
</thead>
<tbody>

 <?php $i=1; foreach($candidate as $c){?>       
<tr>
<td><?= $i; ?></td>
<td><?= $c['job_id']?></td>
<td><?= $c['date']?></td>
<td><?= $c['position']?></td>
<td><?= $c['job_location']?></td>

<td><?= $c['name']?></td>
<td><?= $c['phone']?></td>
<td><?= $c['email']?></td>
<td><?= $c['experiance']?></td>
<td><?= $c['ctc']?></td>
<td><?= $c['expected_ctc']?></td>
<td><?= $c['notice_period']?></td>
<td><?= $c['current_company']?></td>
<td><?= $c['status']?></td>
<td></td>
</tr>
<?php $i++;}?>
</tbody>
</table>
<?= $links; ?>
</div>
</div>
</div>
</div>



</div>


</div>




</div>


</div>
</div>
<?php $this->load->view('admin/common/footer'); ?>
<script type="text/javascript">

  $('#job_id').bind("input",function() { 
    var xx=$(this).val();
    $.ajax({
      url: "<?= base_url('company/get_job')?>",
      data: { job_id : xx },
      type: 'post',
      dataType: "json",
      success: function(data) {
        $('#submission_date').val(data.date);
        $('#position').val(data.position);
        $('#location').val(data.location);
         $('#submission_date').attr('readonly', true);
        $('#position').attr('readonly', true);
        $('#location').attr('readonly', true);
      }
    });
  });
</script>