<?php ?>
<div class="container-fluid bg-white mt-3 mb-3 pt-3 pb-3">
    <div class="row">
        <div class="col-sm-12">
            
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Welcome">Home</a></li>
                <li class="breadcrumb-item"><a href="#">Students</a></li>
            </ul>
            
            <div class="table-responsive">
                <table class="table table-bordered table-striped" id="mytable">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Name</th>
                            <th>Father's Name</th>
                            <th>Class</th>
                            <th>Documents</th>
                            <th>Status</th>
                            <th>Profile</th>
                            <th>Scholor Register</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $table='student';
                        
                        $all_students=$this->DeveloperModel->get_data($table);
                        if($all_students){
                            foreach($all_students as $students){
                                ?>
                        <tr>
                            <td><?php echo $students['id'];?></td>
                            <td><?php echo $students['student_name'];?></td>
                            <td><?php echo $students['father_name'];?></td>
                            <td><?php echo $students['class'];?></td>
                            <td><a href="<?php echo base_url();?>Student/documentation/<?php echo $students['id'];?>" class="btn btn-sm btn-info">Documents</a></td>
                            <td><?php echo $students['status_description'];?></td>
                            <td><a href="<?php echo base_url();?>School/student_profile/<?php echo $students['id'];?>" class="btn btn-sm btn-info">Profile</a></td>
                            
                            <td><a href="<?php echo base_url();?>School/scholor_register/<?php echo $students['id']; ?>" class="btn btn-sm btn-warning">View</a></td>
                        </tr>
                                <?php
                            }
                        }
                        ?>

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