<?php
$sid=$this->uri->segment('3');
$table='student';
$student_information=$this->SchoolModel->get_item_data($sid,$table);
if($student_information){
    foreach($student_information as $data){
?>
<div class="container-fluid mt-3 mb-3 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">Scholor Register</li>
                <li class="breadcrumb-item"><?php echo $data['student_name'];?></li>
            </ul>
            
            <div class="profile-div text-center">
                <img src="<?php echo base_url();?>assets/student-profile-pic.jpg" style="border-radius:50%;">
            </div>
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th colspan="2" class="text-center">Personal Information</th>
                        </tr>
                        <tr>
                            <th>Name</th>
                            <td><?php echo $data['student_name'];?></td>
                        </tr>
                        <tr>
                            <th>Father's Name</th>
                            <td><?php echo $data['father_name'];?></td>
                        </tr>
                        <tr>
                            <th>D.O.B.</th>
                            <td><?php if($data['dob']){echo date('d-M-Y',strtotime($data['dob']));}else{ echo "----";}?></td>
                        </tr>
                        <tr>
                            <th>Contact No.:</th>
                            <td><?php echo $data['contact_no']; echo ","; echo $data['alternate_no'];?></td>
                        </tr>
                        <tr>
                            <th>Address : </th>
                            <td><?php echo $data['address'];?></td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
</div>
<?php
    }
}
?>