@extends('backend.student.layouts.right_side_bar') @section('studentBody')
@include('layouts.message')

{{$heading}} Back

"This is the set of exam that you can appear now! You can re-appear for next set of exam in few Days."
@foreach($terms as $term)
{{$term->name}}
Start Date: {{$term->start_date}}
End Date : {{$term->end_date}}
@if($term->start_date <= date('Y-m-d') && $term->end_date >= date('Y-m-d')) @if ($studentTerm = \App\OnlineExam\StudentTerm::where('student_id',$student->id)->where('term_id',$term->id)->first()) @if($studentTerm->status=='pending') Continue Exam Set @else View Result of this exam Set @endif @else Start Exam Set @endif @elseif($term->end_date > date('Y-m-d')) @elseif($term->end_date < date('Y-m-d')) @else
Exam Set not available !! @endif
@endforeach
{{--
--}} {{-- @foreach($subjects as $subject)--}} {{-- @php--}} {{-- $objectives = $subject->questions()->where('status','public')->where('type','Objective')->get();--}} {{-- $subjectives = $subject->questions()->where('status','public')->where('type','Subjective')->get();--}} {{-- @endphp--}} {{-- @if(count($subject->questions)>0 && count($objectives)>0 || count($subjectives)>0)--}} {{--
--}} {{-- --}} {{--
--}} {{-- {{$subject->name}}--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- @if(count($objectives)>0)--}} {{-- --}} {{-- {{count($objectives)}} Objectives Questions Found !--}} {{-- --}} {{-- @endif--}} {{-- @if(count($subjectives)>0)--}} {{-- --}} {{-- {{count($subjectives)}} Subjectives Questions Found !--}} {{-- --}} {{-- @endif--}} {{--
--}} {{--
--}} {{--
--}} {{-- @endif--}} {{-- @endforeach--}} {{--
--}}
@endsection