 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">All Result</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Examination</a></li>
              <li class="breadcrumb-item active">All Result</li>

            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title">View All Students</h3>
          </div>
            <!-- /.card-header -->
            <div class="card-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Reg No</th>
                  <th>Student Name</th>
                  <th>Course</th>
                  <th>Exam Date & Time</th>
                  <th> Result</th>
                </tr>
                </thead>
                <tbody>
                <?php $i=1; foreach ($all_student as $student):?>
                <tr>
                  <td><?php echo $student->user_reg_id ?></td>
                  <td><?php echo $student->user_name; ?></td>
                  <td><?php echo $student->title; ?></td>
                  <td><?php echo date('d-m-Y', strtotime($student->st_student_exam_date)); ?> <br/><?php echo date('h:i A', strtotime($student->st_student_exam_time)); ?>
                  </td>
                  <td class="text-center">
                    <a target="_blank" href="<?php echo base_url(); ?>admin/examination/print_result/<?php echo $student->user_reg_id; ?>/<?php echo $student->id; ?>" class="btn btn-success btn-xs mt-3"><i class="fa fa-print"></i> &nbsp;&nbsp;Print</a>
                  </td>
                </tr>
                <?php $i++; ?>
                <?php endforeach; ?>
                </tbody>
              </table>
            </div>
          </div>
      </div>
    </section>
  </div>
