@extends('backend.superadmin.index') @section('body')

{{$heading}}

Back
{{-- @include('layouts.message')--}}
@foreach($subjects as $key=>$subject) @endforeach
SN Subject Name Objective Subjective
{{++$key}} {{$subject->name}} @if(count($objectiveQuestions->where('subject_id',$subject->id)->get())>0) View Result @php $marks = 0; @endphp @foreach($objectiveQuestions->where('subject_id',$subject->id)->get() as $key=>$objectiveQuestion) @if($checkStudentAnswer = $objectiveQuestion->studentObjectiveAnswers()->where('student_id',$student->id)->first()) @php $questionOption = \App\OnlineExam\QuestionOption::findOrFail($checkStudentAnswer->question_option_id); @endphp @if($questionOption->type=='True') @php $marks += $objectiveQuestion->marks; @endphp @endif @endif @endforeach Total Mask : {{$marks}} | {{round(($marks*100)/$objectiveQuestions->sum('marks'),2)}}% @else Not Found @endif @if(count($subjectiveQuestions->where('subject_id',$subject->id)->get())>0) View Result @else Not Found @endif
@endsection @section('script') @endsection