<center><span data-date="<?php echo e(date('m/d/Y',strtotime($date))); ?>" class="prev-arrow js-prev-month"><b>
			<<</b> </span> <span class="font-600 month-heading"><?php echo e($date); ?></span><span data-date="<?php echo e(date('m/d/Y',strtotime($date))); ?>" class="next-arrow js-next-month"> <b>>></b></span></center>
<table class="swarkul-table mt-3">
	<thead>
		<tr>
			<th scope="col">Student</th>
			<th scope="col">Genre</th>
			<th scope="col">Date</th>
			<th scope="col">Time Slot</th>
			<th scope="col">Grade</th>
			<th scope="col">Status</th>
			<th scope="col">Action</th>
		</tr>
	</thead>
	<tbody>
		<?php if(count($examinerSchedulerinfo) == 0): ?>
		<tr>
			<td colspan="7">
				<div class="card p-3 w-100 text-center"><b>No certification found</b></div>
			</td>
		</tr>
		<?php else: ?>
		<?php $__currentLoopData = $examinerSchedulerinfo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		<tr>
			<td><?php echo e(@$list->student->name); ?><br><small>DOB: <?php echo e(date('m/d/Y',strtotime(@$list->student->dob))); ?> </small></td>
			<td><?php echo e(@$list->exam_master->genre); ?></td>
			<td><?php echo e(date('m/d/Y',strtotime($list->slot->slot_date))); ?></td>
			<td><?php echo e($list->slot->slot_time_start); ?> to <?php echo e($list->slot->slot_time_end); ?></td>
			
			<td><?php if($list->status == 'Complete'): ?>
				<?php $grade = json_decode($list->examEvaluationGrade->status, true);
				$array_mark = array_keys($grade);
				$array_status = array_values($grade);
				$status = '';
				if ($list->examEvaluationGrade->grade  >= 0 && $list->examEvaluationGrade->grade <= $array_mark[0]) {
					$status = $array_status[0];
				} elseif ($list->examEvaluationGrade->grade >= $array_mark[0] && $list->examEvaluationGrade->grade <= $array_mark[1]) {
					$status = $array_status[1];
				} elseif ($list->examEvaluationGrade->grade >= $array_mark[1] && $list->examEvaluationGrade->grade <= $array_mark[2]) {
					$status = $array_status[2];
				} elseif ($list->examEvaluationGrade->grade >= $array_mark[2] && $list->examEvaluationGrade->grade <= $array_mark[3]) {
					$status = $array_status[3];
				}
				?>
				<div><b><?php echo e($status); ?></b></div>
				<?php else: ?>
				<div><b> - </b></div>
				<?php endif; ?>
			</td>
			<td><?php if($list->status == 'Complete'): ?>
				<div class="swarkul-status complete">Completed</div>
				<?php elseif($list->status == 'Pending'): ?>
				<div class="swarkul-status pending"><?php echo e($list->status); ?></div>
				<?php else: ?>
				<div class="swarkul-status inprogress"><?php echo e($list->status); ?></div>
				<?php endif; ?>
			</td>
			<?php if($list->status == 'Complete'): ?>
				<td><a class="btn btn-success" href="javascript:void(0)">Download</a></td>
			<?php else: ?>
				<?php if($list->payment_status == 'Success'): ?>
					<td><a class="btn btn-success" href="javascript:void(0)"><?php echo e($list->payment_status); ?></a></td>
				<?php elseif($list->payment_status == 'Failed'): ?>
					<td><a class="btn btn-success" href="javascript:void(0)"><?php echo e($list->payment_status); ?></a></td>
				<?php else: ?>
					<td><a class="btn btn-success" href="<?php echo e(url('payment/'.$list->id)); ?>">Book This Slot</a></td>
				<?php endif; ?>
			<?php endif; ?>
			
		</tr>
		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		<?php endif; ?>

	</tbody>
</table><?php /**PATH /home/shahul2020/swarkul/resources/views/site/student/my-certification_ajax.blade.php ENDPATH**/ ?>