<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<style>
.report-card{border:2px solid #a1def4;height:95%;border-radius:5px;}
</style>
    <title>Annual Report Card</title>
  </head>
  <body>
 
<div class="container" >
<div class="row">
<div class="col-sm-12">
<center>
<h2 style="background: yellow;">Student Detail</h2></center>

<div class="table-responsive text-center">
<table class="table table-bordered table-striped" id="mytable" style="width:100%">

<thead>
<tr><th>Student Name</th><th>Father Name</th><th>Address</th><th>Contact No</th></tr>

</thead>
<tbody>
<?php
$table='student';
$student_id=$this->uri->segment('3');
// $get_student_data=$this->StudentModel->get_data_by_id($student_id,$table);
$get_student_data=$this->StudentModel->get_table_data($table);
if($get_student_data){
foreach($get_student_data as $data){
?>
<tr>
<td><?php echo htmlspecialchars_decode($data['student_name']); ?></td>
<td><?php echo htmlspecialchars_decode($data['father_name']); ?></td>
<td><?php echo htmlspecialchars_decode($data['address']); ?></td>
<td><?php echo htmlspecialchars_decode($data['contact_no']); ?></td>
</tr>
<?php

}
}

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

</div>
</div>
</div>
</body>
</html>