BBnepal-Accounts/application/views/student/view-test-detail.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

53 lines
2.3 KiB
PHP

<main class="common_margin" id="main">
<div class="main-wrap">
<h5 class="content-heading-sec"><a href="<?= base_url(); ?>student/my-tests-exams">&lt;&lt;Back</a></h5>
<div class="content-box-scroll-less">
<!--------------------exam -notification-box -->
<?php
if (isset($exams_data) != '' || !empty($exams_data)) {
foreach ($exams_data as $key => $value) {
$st_date = new DateTime($value['exam_starttime']);
$ed_date = new DateTime($value['exam_endtime']);
$interval = $ed_date->diff($st_date);
if ($interval->format('%H') == '' || $interval->format('%H') == 0) {
$duration = $interval->format('%I mins');
}else{
$duration = $interval->format(' %H hr - %I mins');
}
?>
<div class="content-exam-box-blue">
<div class="content-box-one-inner">
<div class="content-right-side">
<h6><?php echo $value['subject_name'] .' : '. $value['e_name'] ?></h6>
</div>
<div class="content-left-side">
<div class="blue-tick"><i class="fa fa-check"></i></div>
</div>
</div>
<div class="content-last-sec mt-2">
<li>Today - <?php echo $value['exam_date']; ?></li>
<li>Time - <?php echo $st_date->format('H:i A'); ?></li>
<li>Duration - <?php echo $duration ?></li>
<li>
<div class="exam-detail-btn">
<a href="<?= base_url() ?>student/question-paper/<?php echo $value['question_id']; ?>"> <input type="button" value="Start-exam " class="exam-last-sec-btn "></a>
</div>
</li>
</div>
<div style="color: #585469; font-size: 13px;">
Total Marks - <?php echo $value['total_marks']; ?>
</div>
</div>
<?php } } ?>
</div>
</div>
</main>