<div class="container-fluid bg-white mt-3 mb-3">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
    
            <ul class="breadcrumb">
                <li class="breadcrumb-item">
                    <a href="<?php echo base_url(); ?>Welcome">Home</a>
                </li>
                <li class="breadcrumb-item">
                    <a href="<?php echo base_url()."Fee/all_acedemic_sessions"; ?>">All Acedemic Sessions</a>
                </li>
                <li class="breadcrumb-item">Fee Structure</li>
            </ul>

            <div class="">

                <table class="table table-bordered table-striped">
                    <thead>
                        <?php
                        $ac_session_id=$this->uri->segment('3');
                        $ac_session_table='academic_session_details';
                        $get_session_data=$this->NewFeeModel->get_item_data($ac_session_id,$ac_session_table);
                        if($get_session_data){
                            foreach($get_session_data as $session_data){
                        ?>
                        <tr>
                            <th>Acedemic Session </th>
                            <th colspan="2"><?php echo $session_data['y1']; echo "-"; echo $session_data['y2']; ?></th>
                        </tr>
                        <?php
                            }       
                            }
                        ?>


                        <tr>
                            <th>Course</th>
                            <th>Edit</th>
                            <th>View</th>
                        </tr>
                        </thead>    
                        <tbody>
                            <?php
                            $courses_table='courses';
                            $all_active_courses=$this->NewFeeModel->get_data($courses_table);
                            if($all_active_courses){
                                foreach($all_active_courses as $courses){
                            ?>
                            <tr>
                                <td><?php echo $courses['course']; echo " "; echo $courses['subject_stream']; ?></td>
                                <td>
                                    <a href="<?php echo base_url();?>Fee/add_fee_structure_monthly/<?php echo $courses['id']; echo "/"; echo $ac_session_id; ?>" class="btn btn-sm btn-warning" target="_blank">Update</a></td>
                                <td>
                                    <a href="<?php echo base_url();?>Fee/course_fee_structure/<?php echo $courses['id']; echo "/"; echo $ac_session_id; ?>" class="btn btn-sm btn-primary" target="_blank"> View</a></td>
                            </tr>
                            <?php
                                }
                            }
                            ?>
                        </tbody>
                </table>


            </div>


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