Sindbad~EG File Manager
<?php $__env->startSection('content'); ?>
<!-- <h1>Home</h1> -->
<div class="col-md-12 text-center">
<h4> <?php echo $course_name; ?></h4>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 text-right mb-1" >
<a href="<?php echo URL::to('export_result/'.$course_id); ?>" class="btn btn-info" title="Download Result">Download Result</a>
</div>
</div>
<div class="mobile-responsive">
<table class="table table-striped" cellpadding="6" border="3px solid black" id="myTable">
<thead class="thead-dark">
<tr cellpadding="7" >
<th>S.No</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th>Correct</th>
<th>Wrong</th>
<th>Skipped</th>
<th>Total Question</th>
<th>Total Duration</th>
<th>Total Mark</th>
</tr>
</thead>
<tbody>
<?php if(isset($results)): ?>
<?php $i=1; $total_ques = 0 ;?>
<?php foreach($results as $result): ?>
<?php $total_ques = $total_ques + $result->totalcorrect + $result->totalwrong + $result->totalSkipped;
$total_mark = $result->viva_marks + $result->totalcorrect + $result->workshop_mark;
?>
<tr>
<td data-label ="S.NO"> <?php echo $i; ?></td>
<td data-label = "Name"><?php echo $result->full_name; ?></td>
<td data-label = "Email"><?php echo $result->email; ?></td>
<td data-label = "Mobile"><?php echo $result->mobile; ?></td>
<td data-label = "Correct"><?php echo $result->totalcorrect; ?></td>
<td data-label = "Wrong"><?php echo $result->totalwrong; ?></td>
<td data-label = "Skipped"><?php echo $result->totalSkipped; ?></td>
<td data-label = "Total"><?php echo $total_ques; ?></td>
<td data-label = "Total Duration"><?php echo $result->duration; ?></td>
<td data-label = "Total Mark"><?php echo $total_mark; ?></td>
</tr>
<?php $i = $i+1 ; $total_ques = 0 ; ?>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="8" data-label =""> <span style="color: red;"> Record not found.</span></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<br/>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function()
{
$('#myTable').dataTable({
'iDisplayLength': 100
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('results/result_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists