<div class="container-fluid bg-white mt-3 mb-3 pt-3 pb-3">
    <div class="row">
        <div class="col-sm-12">
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>Count</th>
                            <th>Acedemic Session</th>
                            <th>Class</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $count=0;
                        $sid=$this->uri->segment('3');
                        $get_student_courses_data=$this->SchoolModel->get_student_courses_data($sid);
                        if($get_student_courses_data){
                            foreach($get_student_courses_data as $courses_data){
                               $count = $count + 1;
                               $course=$courses_data['class'];
                               $section=$courses_data['section'];
                               $ac_session_table='academic_session_details';
                               $ac_session_id=$courses_data['acedemic_session'];
                               $ac_session__data=$this->WelcomeModel->get_item_data($ac_session_id,$ac_session_table);
                               if($ac_session__data){
                                   foreach($ac_session__data as $session__data){
                                        $acedemic_session_full_year=$session__data['year_long'];        
                                
                               
                                ?>
                        <tr>
                            <td><?php echo $count;?></td>
                            <td><?php echo $acedemic_session_full_year;?></td>
                            <td><?php echo $course."-".$section;?></td>
                            
                        </tr>                                
                                <?php
                                   }
                               }
                            }
                        }
                        ?>

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