IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<!--<div class="card">-->
<div class="body">
<button class="btn btn-raised btn-warning btn-round waves-effect" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Advance Search</button>
<div class="collapse" id="collapseExample">
<div class="well">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Advance Search</strong></h2>
</div>
<div class="body">
<?php echo Form::open(['method' => 'GET', 'action' => ['School\Exam\ExamMcqReportController@index'], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-12">
<div class="row clearfix">
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idClass',$classes,null,['class' => 'form-control select2 show-tick ms']); ?>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idSection',$section,null,['class' => 'form-control select2 show-tick ms','id'=>'idSection']); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-12">
<div class="row clearfix">
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idSubject',$subject,null,['class' => 'form-control select2 show-tick ms','id'=>'idSubject']); ?>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idExam',$exam,null,['class' => 'form-control select2 show-tick ms','id'=>'idExam']); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-8 offset-sm-2">
<?php echo Form::submit('SHOW',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>
<?php echo Form::close(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--</div>-->
</div>
</div>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="body">
<div class="body">
<!-- Nav tabs -->
<!-- <ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#home">DAY</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#messages">All Time</a></li>
</ul> -->
<!-- Tab panes -->
<div class="tab-content">
<div> <div class="header"> <h2><strong> Report</strong></h2></div>
<div class="body table-responsive">
<table id="report_table" class="table table-bordered">
<thead>
<tr><th>EC No.</th>
<th>Name</th>
<th>Class</th>
<th>Section</th>
<th>Subject Name</th>
<th>Exam Name</th>
<th>Total Marks</th>
<th>Marks Achived</th>
<th>Time Taken</th>
<th>Percentage</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($var->ecNo); ?></td>
<td><?php echo e($var->firstName); ?></td>
<td><?php echo e($var->classM->className); ?></td>
<td><?php if(isset($var->section->sectionName)): ?><?php echo e($var->section->sectionName); ?><?php else: ?> All <?php endif; ?></td>
<td><?php echo e($var->SubjectM->subjectName); ?></td>
<td><?php echo e($var->examName); ?></td>
<td><?php echo e($var->totalMarks); ?></td>
<td><?php echo e($var->marks); ?></td>
<?php
$start = new \Carbon\Carbon($var->examDate);
$end = new \Carbon\Carbon($var->created_at);
?>
<td><?php echo e($start->diff($end)->format('%H:%I:%S')); ?></td>
<?php $per = ( $var->marks/$var->totalMarks) * 100;?>
<td><?php echo e($per); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$('#report_table').DataTable({
dom: 'Bfrtip',
scrollY: "500px",
scrollX: true,
scrollCollapse: true,
fixedColumns: {
left: 1
},
buttons: [
'copyHtml5',
'excelHtml5',
'csvHtml5',
'pdfHtml5'
]
});
$('.dateselector').datepicker({
autoclose: true,
autoWidth: false,
format: 'dd-mm-yyyy',
endDate: '+0d',
orientation: 'auto'
});
$('select[name="idClass"]').on('change', function() {
var classID = $(this).val();
if(classID!='All') {
$.ajax({
url: "<?php echo e(url('/school/class')); ?>"+'/' +classID + "/sections",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSection').empty();
$('#idSection').append('<option value="" selected="selected">-- Select Section --</option>');
$('#idSection').append('<option value="all" selected="selected">-- All Section --</option>');
$.each(data, function(key, value) {
$('#idSection').append('<option value="'+key+'">'+value+'</option>');
});
}
});
$.ajax({
url: "<?php echo e(url('/school/class')); ?>"+'/' +classID + "/subjects",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSubject').empty();
$('#idSubject').append('<option value="" selected="selected">-- Select Subject --</option>');
$.each(data, function(key, value) {
$('#idSubject').append('<option value="'+key+'">'+value+'</option>');
});
}
});
}else{
$('select[name="idSection"]').empty();
}
});
$('select[name="idSection"]').on('change', function() {
var classID = $(this).val();
if(classID!='All') {
}else{
$('select[name="idSubject"]').empty();
}
});
$('select[name="idSubject"]').on('change', function() {
var classID = $(this).val();
if(classID!='All') {
$.ajax({
url: "<?php echo e(url('/school/mcq/exams')); ?>"+'/' +classID ,
type: "GET",
dataType: "json",
success:function(data) {
$('#idExam').empty();
$('#idExam').append('<option value="" selected="selected">-- Select Exam --</option>');
$.each(data, function(key, value) {
$('#idExam').append('<option value="'+key+'">'+value+'</option>');
});
}
});
}else{
$('select[name="idExam"]').empty();
}
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -