<style>
    body{background:#EAEDED;}
    a{color:black;}
    a:hover{text-decoration:none;}
</style>
<div class="container mt-3 mb-3">
<div class="row">
<div class="col-sm-12 bg-white p-3">
<ul class="breadcrumb">
<li class="breadcrumb-item"><?php echo $this->session->userdata('ac_year'); ?></li> 
<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li> 
<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Enquiry/all_courses">All Courses</a></li> 
<li class="breadcrumb-item">Student</li>
</ul>

<div class="table-responsive ">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Father Name</th>
<th>D.O.B.</th>
<th>Class-Section</th>
<!--<th>Action</th>-->
</tr>
</thead>
<tbody>
<?php
$count=0;
$course=$this->uri->segment('3');
$table='enquiry';
$get_data=$this->WelcomeModel->get_data($table);
if($get_data){
foreach($get_data as $data){
if($data['class'] ==$course && $data['admission_status'] ==1){
$count= $count + 1;

?>
<tr>
<td><?php echo $count;?></td>
<td><?php echo $data['first_name']; echo " "; echo $data['last_name'];?></td>
<td><?php echo $data['father_name']; ?></td>
<td><?php echo $data['dob']; ?></td>
<td><?php echo $data['class']; echo "-"; echo $data['section'];?></td>
<!--<td><a href="<?php echo base_url();?>Developer/convert_admission/<?php echo $data['id'];?>" class="btn btn-sm btn-success">Convert to Admission</a></td>-->
</tr>
<?php
}
}
}
?>
</tbody>
</table>
</div>


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