<?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="col-md-12 ">
<div class="panel panel-bd">

<div class="panel-body" style="padding:15px 25px; height:auto; text-align: center;">

<div>

<div class="row">

<?php 
$user=$this->session->userdata('secret_admin');
  $cv_feedback=$this->db->select('candidate.*')->from('candidate')->where('candidate.added_by',$user['id'])->where('candidate.status','Profile feedback pending')->order_by('id','desc')->get()->num_rows();
  $reject=$this->db->select('candidate.*')->from('candidate')->where('candidate.added_by',$user['id'])->where('candidate.status','Profile reject')->order_by('id','desc')->get()->num_rows();

  $interview_scheduled=$this->db->select('candidate.*')->from('candidate')->where('candidate.added_by',$user['id'])->where('candidate.status','Schedule Interview')->order_by('id','desc')->get()->num_rows();

  $backout=$this->db->select('candidate.*')->from('candidate')->where('candidate.added_by',$user['id'])->where('candidate.remark','Not Attended')->order_by('id','desc')->get()->num_rows();
?>
<div class="col-md-12 "><span class="das-bo-padd">CV feedback Pending <em class="em">(<?= $cv_feedback; ?>)</em></span> <span class="das-bo-padd">CV reject <em class="emm">(<?= $reject; ?>)</em></span> <span class="das-bo-padd">Schedule Interview <em class="emmm">(<?= $interview_scheduled; ?>)</em></span> <span class="das-bo-padd">Candidate Backout <em class="emmmm">(<?= $backout?>)</em></span> </div>


</div>


</div>
</div>
</div>
</div>



</div>



<div class="row">

<div class="col-md-12 ">
<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> Candidates</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" class="form-control" name="search" 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>Job Id</th>
<th>Position</th>
<th>Job Location</th>
<th>Current 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>
</tr>
</thead>
<tbody>
 <?php $i=1; foreach($candidate as $c){?>
<tr>
<td><?= $i; ?></td>
<td><?= $c['job_id']?></td>
<td><?= $c['position']?></td>
<td><?= $c['job_location']?></td>
<td><?= $c['current_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><form action="<?= base_url('Admin/admin_status_candidate')?>" method="post"><input type="hidden" name="id" value="<?=$c['id']?>"><select name="admin_status" class="form-control" onchange="this.form.submit()"><option value="Active" <?php if($c['admin_status']=='Active'){ echo 'selected';}?>>Active</option><option value="Inactive" <?php if($c['admin_status']=='Inactive'){ echo 'selected';}?>>Inactive</option></select></form></td>

<td><?= $c['status']; ?><!-- <select name="select3" class="form-control">
<option <?php if($c['status']=='Profile feedback pending'){ echo 'selected'; } ?>>Profile feedback pending</option>
<option <?php if($c['status']=='Profile reject'){ echo 'selected'; } ?>>Profile reject</option>
<option <?php if($c['status']=='Schedule Interview'){ echo 'selected'; } ?>>Schedule Interview</option>
<option <?php if($c['status']=='Candidate backout'){ echo 'selected'; } ?>>Candidate backout</option>
</select> --></td>
</tr>
<?php $i++; }?>

</tbody>
</table>
</div>
</div>
</div>
</div>



</div>


</div>



</div>
</div>

</div>


<?php $this->load->view('admin/common/footer'); ?>