<style>
    body{background:#EAEDED;}
</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">All Courses</li> 
</ul>
<h3> All Courses</h3>
<div class="table-responsive ">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>Course</th>
<th>View</th>
</tr>
</thead>
<tbody>
<?php
$table='courses';
$get_data=$this->WelcomeModel->get_data($table);
if($get_data){
foreach($get_data as $data){
?>
<tr>
<td>#</td>
<td><?php echo $data['course'];?></td>
<td><a href="<?php echo base_url(); ?>Enquiry/course_admissions/<?php echo $data['course'];?>" class="btn btn-warning btn-sm text-white">View</a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>


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