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

{{$heading}} Back

@foreach($subjects as $subject) @php $objectives = $subject->questions()->whereIn('id',$questionIds)->where('status','public')->where('type','Objective')->get(); $subjectives = $subject->questions()->whereIn('id',$questionIds)->where('status','public')->where('type','Subjective')->get(); @endphp @if(count($objectives)>0 || count($subjectives)>0)
{{$subject->name}}
@if ($studentSubject = \App\OnlineExam\StudentSubejct::where('student_id',$student->id)->where('subject_id',$subject->id)->first()) @if($studentSubject->status=='pending') Continue @else View Result @endif @else Let's Start @endif
@endif @endforeach
@endsection