
        <div class="row">
                <div class="col-lg-12">
                <div class="x_panel">
                   <div class="x_title">
                  <h2>
                    Student Attendance
                  </h2> 
                  <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                  </ul>
                   <div class="clearfix"></div>
                   </div><!-- x_title -->
                    
                  <div class="x_content">

<!-- =============================================================================================== -->

					         <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap">
                      <thead class="center">
                        <tr>
                          <th style="width:50px;">#</th>
                          <th style="width:100px;">Gr.#</th>
                          <th style="width:150px;">Student Name</th>
                          <th style="width:100px;">Class</th>
                          <th style="width:100px;">Section</th>
                          <th style="width:100px;">Date</th>
                          <th style="width:100px;">Status</th>
                        </tr>
                      </thead>
                      <tbody class="center">
                        <?php 
                           if (isset($student_attendance)) : 
                       		 $i=1; foreach ($student_attendance as $key => $value){ ?>
                        <tr>
                          <td><?php echo $i++; ?></td>
                          <td><?php echo $value['grno']; ?></td>
                          <td><?php echo $value['student_name']; ?></td>
                          <td><?php echo $value['class_name']; ?></td>
                          <td><?php echo $value['section_name']; ?></td>
                          <td><?php echo date("d-m-Y",strtotime($value['date'])); ?></td>
                          <td><?php echo $value['status']; ?></td>
                        </tr>
                        <?php }  endif ?>
                      </tbody>
                    </table>
<!-- ========================================================================================================================== -->
                  </div><!-- x_content -->
                </div><!-- x_panel -->
            	</div> <!-- col-lg-12 -->
         	</div> <!-- /#row --> 

      