<style>
    body{background:#EAEDED;}
    a{color:black;}
    a:hover{text-decoration:none;}
</style>
<div class="container-fluid mt-3 mb-3">
<div class="row">
<div class="col-sm-12 p-3 bg-white">
<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">Academic Session</li> 

</ul>

<a href="<?php echo base_url();?>Fee/add_acedemic_session" class="btn btn-sm btn-info">Add New Academic Session</a>
<a href="<?php echo base_url();?>Fee/heads" class="btn btn-sm btn-info">Fee Head</a>
<div class="mt-3 mb-3">
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Y1</th>
<th>Y2</th>
<th>Y1-Y2</th>
<th>Active</th>
<th>Fee Heads</th>
<th>Fee Structure</th>
</tr>    
</thead>
<tbody>
<?php
$table='academic_session_details';
$get_ac_sessions=$this->NewFeeModel->get_data($table);
if($get_ac_sessions){
foreach($get_ac_sessions as $sessions){

?>
<tr>
<td><?php echo $sessions['y1']; ?></td>
<td><?php echo $sessions['y2']; ?></td>
<td><?php echo $sessions['year_long']; ?></td>
<td>
<?php
if($sessions['status']==1){
?>
<button class="btn btn-sm btn-success">Active</button>
<?php
}else{
    
}
?>
</td>
<td><a href="<?php echo base_url();?>Fee/heads/<?php echo $sessions['id']; ?>" class="btn btn-sm btn-success">Fee Heads</a></td>
<td><a href="<?php echo base_url();?>Fee/structure/<?php echo $sessions['id'];?>" class="btn btn-sm btn-info">View</a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>


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