<div class="container-fluid bg-white">
    <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">Rte Students</li>
            </ul>
            
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Student Name</th>
                            <th>Father Name</th>
                            <th>Class</th>
                            <!--<th>Action</th>-->
                        </tr>
                    </thead>
                    <tbody>
                        
                        <?php 
                        $acedemic_session=$this->session->userdata('acedemic_session');
                        $table='rte_students';
                        $count=0;
                        $get_rte_students=$this->NewFeeModel->get_acedemic_session_data($acedemic_session,$table);
                        if($get_rte_students){
                            foreach($get_rte_students as $rte_students){
                                $name='';
                                $fname='';
                                $sid=$rte_students['sid'];
                                $student_table='student';
                                $get_student_data=$this->NewFeeModel->get_item_data($sid,$student_table);
                                if($get_student_data){
                                    foreach($get_student_data as $data){
                                        $name=$data['student_name'];
                                        $fname=$data['father_name'];
                                    }
                                }
                                $count=$count + 1;
                                
                                $course_info=$rte_students['course_info'];
                        ?>
                        <tr>
                            <td><?php echo $count; ?></td>
                            <td><?php echo $name; ?></td>
                            <td><?php echo $fname; ?></td>
                            <td><?php echo $course_info; ?></td>
                            <!--<td></td>-->
                        </tr>
                        <?php
                            }
                        }
                        ?>
                        
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>