        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
           

            <div class="clearfix"></div>

            <div class="row">

              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Voucher View</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>
                  <div class="x_content">
                    <table id="datatable-buttons" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>#</th>
                          <th>Voucher No</th>
                          <th>Student Name</th>
                          <th>Father Name</th>
                          <th>Class</th>
                          <th>Section</th>
                          <th>Status</th>
                          <th>Date</th>
                          <th>Actions</th>
                        </tr>
                      </thead>
                      <tbody>
                        <?php $i=1; foreach ($invoices as $key => $value) { 
                          $cur_date   = strtotime(date('Y-m-d'));
                          $date_expire   = strtotime($value['date_expire']);
                          ?>
                        <tr>
                          <td><?php echo $i++; ?></td>
                          <td><?php echo $value['id']; ?></td>
                          <td><?php echo $value['cadet_name']; ?></td>
                          <td><?php echo $value['father_name']; ?></td>
                          <td><?php echo $value['class_name']; ?></td>
                          <td><?php echo $value['section_name']; ?></td>
                          <?php if($cur_date > $date_expire && $value['status'] == 0 ) { ?>
                          <td>Due</td>
                          <?php } elseif($cur_date <= $date_expire && $value['status'] == 0 ) { ?>
                          <td>Defaulter</td>
                          <?php } else{ ?>
                          <td>Paid</td>
                          <?php } ?>
                          <td><?php echo date("d-m-Y",strtotime($value['due_date'])); ?></td>
                          <td>
                            <a href='<?php echo base_url();?>fee/view/<?php echo $value['id']; ?>'><i class="fa fa-eye"></i></a> 
                            <!--<a href='<?php echo base_url();?>fee/delete/<?php echo $value['id']; ?>'><i class="fa fa-trash"></i></a>-->
                          </td>
                        </tr>
                        <?php } ?>
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>

            </div>
          </div>
        </div>
        <!-- /page content -->

      </div>
    </div>
    <script>
    $(document).ready(function() {
            $('#datatable-buttons').DataTable();
        } );
    </script>
    <!-- jQuery -->
   