<main class="common_margin" id="main"> <div class="main-inner-content main-wrap"> <div class="stud-drade-wrap"> <a href="<?php echo base_url('teacher/exam-evaluate') ?>" class="from-group text-dark mr-2" style="font-size:23px"> <i class="fas fa-long-arrow-alt-left"> </i> </a> <h4 class="content-heading-sec">Evaluation</h4> </div> <div class="exam-evl-action"> <?php if(isset($questions_details) && !empty($questions_details)) { ?> <div class="exam-eval-action-header"><?php echo $questions_details['e_name'] .' - ' . $questions_details['bs_date'] ?></div> <table class="action-sec"> <tr class="action-tab-heading"> <th>Name</th> <th>Status</th> <th>Date</th> <th>Action</th> </tr> <?php if(isset($students_data) && !empty($students_data)){ foreach ($students_data as $key => $value) { if ($value['appeared'] == 'yes') { ?> <tr> <td class="name-strong"><?php echo $value['student_name']; ?></td> <td>Submitted</td> <td><?php echo date('d-m-Y', strtotime($value['date_of_exam'])) ; ?></td> <td> <?php if ($value['status'] == 1) { ?> <a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>"> <input type="button" class="tabl-evl-btn" value="Re-Evaluate"> </a> <?php }else if($value['status'] == 2){ ?> <a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>"> <input type="button" class="tabl-evl-btn" value="View"> </a> <?php } else{?> <a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>"> <input type="button" class="tabl-evl-btn" value="Evaluate"> </a> <?php } ?> </td> </tr> <?php }else{ ?> <tr> <td class="name-strong"><?php echo $value['student_name']; ?></td> <td>Pending</td> <td>-</td> <td>-</td> </tr> <?php } } } ?> </table> </div> <?php } ?> </div> </main>