<?php
$sid=$this->session->userdata('sid');
$acedemic_session=$this->session->userdata('acedemic_session');
$acedemic_session_table='academic_session_details';
$acedemic_session_data=$this->FrontModel->get_item_data($acedemic_session,$acedemic_session_table);
$student_table='student';
$get_item_data=$this->FrontModel->get_item_data($sid,$student_table);
if($get_item_data){
    foreach($get_item_data as $data){
?>

<style>
    .profile-sec{margin-top:120px !important;}
</style>
<div class="container mb-3 pt-3 pb-3 bg-white student-portal">
    <div class="row">
        <div class="col-sm-12">
            <ul class="breadcrumb p-3">
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Home">Home</a></li>
                <li class="breadcrumb-item">Profile</li>
                <li class="breadcrumb-item"><?php echo $this->session->userdata('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>
                    </thead>
                </table>
            </div>
            
        </div>
    </div>
</div>
<?php
    }
}
?>