<center><span data-date="{{ date('m/d/Y',strtotime($date)) }}" class="prev-arrow js-prev-month"><b>
			<<</b> </span> <span class="font-600 month-heading">{{ $date }}</span><span data-date="{{ 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">Genre</th>
			<th scope="col">Level</th>
			<th scope="col">Date</th>
			<th scope="col">Time Slot</th>
			<th scope="col">Status</th>
			<th scope="col">Action</th>
		</tr>
	</thead>
	<tbody>
		@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>
		@else
		@foreach($examinerSchedulerinfo as $list)
		<tr>
			<td>{{ @$list->exam_master->genre }}</td>
			<td>{{ @$list->exam_master->exam_level }}</td>
			<td>{{ date('d M, Y',strtotime($list->slot->slot_date))  }}</td>
			<td>{{ $list->slot->slot_time_start  }} to {{ $list->slot->slot_time_end  }}</td>
			
			<td>@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>{{ $status }}</b></div>
				@else
				<div><b> - </b></div>
				@endif
			</td>
			<td>@if($list->status == 'Complete')
				<div class="swarkul-status complete">Completed</div>
				@elseif($list->status == 'Pending')
				<div class="swarkul-status pending">Scheduled</div>
				@else($list->status == 'Inprogress')
				<div class="swarkul-status inprogress">In-progress</div>
				@endif
			</td>
			@if($list->status == 'Complete')
			<td><a class="btn btn-success" href="{{ url('exam/view/'.App\Http\Helper\Admin\Helpers::encodeAndDecodeID($list->id,'encode')) }}">Evaluation Detail</a> | <a class="btn btn-success" href="{{ url('getCertification/'.App\Http\Helper\Admin\Helpers::encodeAndDecodeID($list->id,'encode')) }}">My Certificate</a></td>
			@else
				<td>-</td>
			@endif
			
		</tr>
		@endforeach
		@endif

	</tbody>
</table>