{{ isset($board_info->board_name) ? strtoupper($board_info->board_name) : null }}

EXAM- {{ $template_name }}

@forelse($grades as $gradeIndex => $grade) @empty @endforelse
Grading Configuration
Letter Grade Grade Point Limit
{{ $grade->letter_grade ?? null }} {{ $grade->grade_point ? number_format($grade->grade_point, 2) : null }} {{ $grade->lower_limit . '-' . $grade->upper_limit }}
No Data Found!
@php $individualSubjects = collect($subjects)->where('subject_type', '=', 'Individual'); $combinedSubjects = collect($subjects)->where('subject_type', '=', 'Combined'); @endphp
@php $individualSubjects = collect($subjects)->where('subject_type', '=', 'Individual'); $combinedSubjects = collect($subjects)->where('subject_type', '=', 'Combined'); @endphp @forelse($individualSubjects as $subjectIndex => $subject) @php $mcq = collect($subject['marks'])->where('markstype', '=', 'MCQ')->first(); $cq = collect($subject['marks'])->where('markstype', '=', 'CQ')->first(); $pq = collect($subject['marks'])->where('markstype', '=', 'PQ')->first(); $ca = collect($subject['marks'])->where('markstype', '=', 'CA')->first(); @endphp @empty @endforelse
Subject List - Individual
Subject Code Subject Name Group Syllabus Year Total Subject Mark Pass Marks Grace Marks Co-ordination Marks Can be 4th? Assessment Only MCQ CQ PQ CA
Total Marks Pass Marks No. Of Questions Total Marks Pass Marks No. Of Questions Total Marks Pass Marks No. Of Questions Total Marks Pass Marks No. Of Questions
{{ $subject['detail']['subject_code'] ?? null }} {{ $subject['detail']['subject_name'] ?? null }} {{ $subject['detail']['group_name'] ?? null }} {{ $subject['syllabusYear'] ?? null }} {{ isset($subject['total_marks']) ? (int)$subject['total_marks'] : null }} {{ isset($subject['pass_marks_percentage']) ? (int)$subject['pass_marks_percentage'] : null }} {{ isset($subject['grace_marks']) ? (int)$subject['grace_marks'] : null }} {{ isset($subject['coordinationPercentage']) ? (int)$subject['coordinationPercentage'] : null }} {{ $subject['fourth'] == 1 ? 'Y' : null }} {{ $subject['assesment_only'] == 1 ? 'Y' : null }}{{ isset($mcq['total_marks']) ? (int)$mcq['total_marks'] : null}} {{ isset($mcq['pass_marks_percentage']) ? (int)$mcq['pass_marks_percentage'] : null}} {{ isset($mcq['total_questions']) ? (int)$mcq['total_questions'] : null}} {{ isset($cq['total_marks']) ? (int)$cq['total_marks'] : null}} {{ isset($cq['pass_marks_percentage']) ? (int)$cq['pass_marks_percentage'] : null}} {{ isset($cq['total_questions']) ? (int)$cq['total_questions'] : null}} {{ isset($pq['total_marks']) ? (int)$pq['total_marks'] : null}} {{ isset($pq['pass_marks_percentage']) ? (int)$pq['pass_marks_percentage'] : null}} {{ isset($pq['total_questions']) ? (int)$pq['total_questions'] : null}} {{ isset($ca['total_marks']) ? (int)$ca['total_marks'] : null}} {{ isset($ca['pass_marks_percentage']) ? (int)$ca['pass_marks_percentage'] : null}} {{ isset($ca['total_questions']) ? (int)$ca['total_questions'] : null}}
No Data Found!
@php $maxChildrenSubject = 0; foreach($combinedSubjects as $comIndex => $sub){ $maxChildrenSubject = max(count($sub['children_subject']), $maxChildrenSubject); } $colSpan = 10 + $maxChildrenSubject * 4; @endphp @for($individualSubj = 0; $individualSubj < $maxChildrenSubject; $individualSubj++ ) @endfor @for($individualSubj = 0; $individualSubj < $maxChildrenSubject; $individualSubj++ ) @endfor @forelse($combinedSubjects as $subjectIndex => $subject) @php $childrenSubjectCount = count($subject['children_subject']); @endphp @if(count($subject['children_subject']) > 0) @foreach($subject['children_subject'] as $childSubjectIndex => $childSubject) @php $tempSubject = collect($individualSubjects)->where('subject_id', $childSubject['subject_id'])->first(); $subjectName = $tempSubject['detail']['subject_name'] ?? null; @endphp @endforeach @endif @if(count($subject['children_subject']) != $maxChildrenSubject) @php $difference = $maxChildrenSubject - count($subject['children_subject']) @endphp @for($diff = 0; $diff < $difference; $diff++ ) @endfor @endif @empty @endforelse
Subject List - Combined
Subject Code Subject Name Group Syllabus Year Total Subject Mark Pass Marks Grace Marks Co-ordination Marks Can be 4th? Assessment OnlySubjects
Subject Name Total Marks Pass Marks Grace Marks
{{ $subject['detail']['subject_code'] ?? null }} {{ $subject['detail']['subject_name'] ?? null }} {{ $subject['detail']['group_name'] ?? null }} {{ $subject['syllabusYear'] ?? null }} {{ isset($subject['total_marks']) ? (int)$subject['total_marks'] : null }} {{ isset($subject['pass_marks_percentage']) ? (int)$subject['pass_marks_percentage'] : null }} {{ isset($subject['grace_marks']) ? (int)$subject['grace_marks'] : null }} {{ isset($subject['coordinationPercentage']) ? (int)$subject['coordinationPercentage'] : null }} {{ $subject['fourth'] == 1 ? 'Y' : null }} {{ $subject['assesment_only'] == 1 ? 'Y' : null }}{{ $subjectName ?? null }} {{ isset($childSubject['total_marks']) ? (int)$childSubject['total_marks'] : null }} {{ isset($childSubject['pass_marks_percentage']) ? (int)$childSubject['pass_marks_percentage'] : null }} {{ isset($childSubject['grace_marks']) ? (int)$childSubject['grace_marks'] : null }}
No Data Found!
@php $marksTypeIds = ($exceptionDetail['none_avg_markstypes']); $marksTypeIdArray = []; for ($strIndex = 0; $strIndex < strlen($marksTypeIds); $strIndex++){ if ($marksTypeIds[$strIndex] != ','){ array_push($marksTypeIdArray, (int) $marksTypeIds[$strIndex]); } } $noAvgMarksType = \App\Models\MarksType::whereIn('markstype_id', $marksTypeIdArray)->pluck('markstype')->unique()->join(','); @endphp
Exception Configuration
First add number of subjects and papers over which Average Mark will be applied. Then choose that average mark will be implemented on missing Both papers of combined subjects or Individual paper of combined subjects. Then Add Subjects to to appear on average mark exception.
Number Of Subjects {{ $exceptionDetail['no_of_subjects'] ?? null }} Number of Papers {{ $exceptionDetail['no_of_papers'] ?? null}} Allow Both Paper Missing {{ $exceptionDetail['is_missing'] == 1 ? 'No' : 'Yes' }} No Average Marks Type{{ $noAvgMarksType ?? null }} Additional Avg Mark {{ $additional_avg_mark ?? 0 }}
@php // $scriptTypes are constant values. Got from front-end perScriptForm(exception configuration) page $scriptTypes = [ 1 => 'MCQ', 2 => 'CQ', 3 => 'PQ', 0 => 'TOTAL' ]; //solve type 1 is for individual script (required hard-code due to design inconsistancy ) $individualExceptionTypes = collect($exceptionConfiguration)->where('solve_type', 1) ->groupBy('src_subject_id'); //solve type 2 is for as per total marks $totalExceptionTypes = collect($exceptionConfiguration)->where('solve_type', 2) ->groupBy('src_subject_id'); //solve type 3 is for as per subject average $subjectAverageExceptionTypes = collect($exceptionConfiguration)->where('solve_type', 3) ->groupBy('src_subject_id'); @endphp @if(count($individualExceptionTypes) > 0)
@forelse($individualExceptionTypes as $indExpIndex => $indExp) @php $tempSubject = collect($individualSubjects)->where('subject_id', $indExpIndex)->first(); $subjectName = $tempSubject['detail']['subject_name'] ?? null; $subjectCode = $tempSubject['detail']['subject_code'] ?? null; $mcqAverageMarks = collect($indExp)->where('src_markstype', 2)->first(); $cqAverageMarks = collect($indExp)->where('src_markstype', 1)->first(); $totalAverageMarks = collect($indExp)->where('src_markstype', 0)->first(); $mcqSubSubjInfo = isset($mcqAverageMarks['sub_subject_id']) ? collect($individualSubjects)->where('subject_id', $mcqAverageMarks['sub_subject_id'])->first() : null; $mcqSubSubj = $mcqSubSubjInfo['detail']['subject_name'] ?? null; $cqSubSubjInfo = isset($cqAverageMarks['sub_subject_id']) ? collect($individualSubjects)->where('subject_id', $cqAverageMarks['sub_subject_id'])->first() : null; $cqSubSubj = $cqSubSubjInfo['detail']['subject_name'] ?? null; $totalSubSubjInfo = isset($totalAverageMarks['sub_subject_id']) ? collect($individualSubjects)->where('subject_id', $totalAverageMarks['sub_subject_id'])->first() : null; $totalSubSubj = $totalSubSubjInfo['detail']['subject_name'] ?? null; $cqScriptType = isset($cqAverageMarks) ? (isset($cqAverageMarks['sub_markstype']) ? $scriptTypes[$cqAverageMarks['sub_markstype']] : 'TOTAL') : null; $mcqScriptType = isset($mcqAverageMarks) ? (isset($mcqAverageMarks['sub_markstype']) ? $scriptTypes[$mcqAverageMarks['sub_markstype']] : 'TOTAL') : null; $totalScriptType = isset($totalAverageMarks) ? (isset($totalAverageMarks['sub_markstype']) ? $scriptTypes[$totalAverageMarks['sub_markstype']] : 'TOTAL') : null; @endphp @empty @endforelse
Average Marking - As per individual script type
Subject Code with Name MCQ Missing CQ Missing CQ and MCQ both Missing
Subject to be averaged from Script Type Percentage or Scale Number Capped to (Percentage) Subject to be averaged from Script Type Percentage or Scale Number Capped to (Percentage) Subject to be averaged from Script Type Percentage or Scale Number Capped to (Percentage)
{{ $subjectName ?? null }} - {{ $subjectCode ?? null }} {{ $cqSubSubj ?? null }} {{ $cqScriptType ?? null }} {{ isset($cqAverageMarks['scale']) ? (int)$cqAverageMarks['scale'] : null}} {{ isset($cqAverageMarks['add_number']) ? (int)$cqAverageMarks['add_number'] : null}} {{ isset($cqAverageMarks['cap']) ? (int)$cqAverageMarks['cap'] : null}} {{ $mcqSubSubj ?? null }} {{ $mcqScriptType ?? null }} {{ isset($mcqAverageMarks['scale']) ? (int)$mcqAverageMarks['scale'] : null}} {{ isset($mcqAverageMarks['add_number']) ? (int)$mcqAverageMarks['add_number'] : null}} {{ isset($mcqAverageMarks['cap']) ? (int)$mcqAverageMarks['cap'] : null}} {{ $totalSubSubj ?? null }} {{ $totalScriptType ?? null }} {{ isset($totalAverageMarks['scale']) ? (int)$totalAverageMarks['scale'] : null}} {{ isset($totalAverageMarks['add_number']) ? (int)$totalAverageMarks['add_number'] : null}} {{ isset($totalAverageMarks['cap']) ? (int)$totalAverageMarks['cap'] : null}}
No Data Found!
@endif @if(count($totalExceptionTypes) > 0)
@php $maxSubject = 0; foreach($totalExceptionTypes as $comIndex => $sub){ $maxSubject = max(count($sub), $maxSubject); } $colSpan = 1 + $maxSubject * 6; @endphp @for($individualSubj = 0; $individualSubj < $maxSubject; $individualSubj++ ) @endfor @for($individualSubj = 0; $individualSubj < $maxSubject; $individualSubj++ ) @endfor @forelse($totalExceptionTypes as $indExpIndex => $indExp) @php $childrenSubjectCount = count($indExp); $tempSubject = collect($individualSubjects)->where('subject_id', $indExpIndex)->first(); $subjectName = $tempSubject['detail']['subject_name'] ?? null; $subjectCode = $tempSubject['detail']['subject_code'] ?? null; @endphp @if(count($indExp) > 0) @foreach($indExp as $childSubjectIndex => $childSubject) @php $totalAverageMarks = $childSubject; $totalSubSubjInfo = isset($totalAverageMarks['sub_subject_id']) ? collect($individualSubjects)->where('subject_id', $totalAverageMarks['sub_subject_id'])->first() : null; $totalSubSubj = $totalSubSubjInfo['detail']['subject_name'] ?? null; $totalScriptType = $scriptTypes[$totalAverageMarks['sub_markstype']] ?? 'TOTAL'; // $totalScriptType = isset($totalAverageMarks) ? (isset($totalAverageMarks['sub_markstype']) ? $scriptTypes[$cqAverageMarks['sub_markstype']] : 'TOTAL') : null; @endphp @endforeach @endif @if(count($indExp) != $maxSubject) @php $difference = $maxSubject - count($indExp) @endphp @for($diff = 0; $diff < $difference; $diff++ ) @endfor @endif @empty @endforelse
Average Marking - As per Total Marks type
Subject Code with NameSubjects
Subject to be averaged from Script Type Percentage or Scale Number Capped to (Percentage) Priority
{{ $subjectName ?? null }} - {{ $subjectCode ?? null }}{{ $totalSubSubj ?? null }} {{ $totalScriptType ?? null }} {{ isset($totalAverageMarks['scale']) ? (int) $totalAverageMarks['scale'] : null}} {{ isset($totalAverageMarks['add_number']) ? (int) $totalAverageMarks['add_number'] : null}} {{ isset($totalAverageMarks['cap']) ? (int) $totalAverageMarks['cap'] : null}} {{ isset($totalAverageMarks['priority']) ? (int) $totalAverageMarks['priority'] : null}}
No Data Found!
@endif @if(count($subjectAverageExceptionTypes) > 0)
@php $maxSubject = 0; foreach($subjectAverageExceptionTypes as $comIndex => $sub){ $maxSubject = max(count($sub), $maxSubject); } $colSpan = 1 + $maxSubject * 5; @endphp @for($individualSubj = 0; $individualSubj < $maxSubject; $individualSubj++ ) @endfor @for($individualSubj = 0; $individualSubj < $maxSubject; $individualSubj++ ) @endfor @forelse($subjectAverageExceptionTypes as $indExpIndex => $indExp) @php $childrenSubjectCount = count($indExp); $tempSubject = collect($individualSubjects)->where('subject_id', $indExpIndex)->first(); $subjectName = $tempSubject['detail']['subject_name'] ?? null; $subjectCode = $tempSubject['detail']['subject_code'] ?? null; @endphp @if(count($indExp) > 0) @foreach($indExp as $childSubjectIndex => $childSubject) @php $totalAverageMarks = $childSubject; $totalSubSubjInfo = isset($totalAverageMarks['sub_subject_id']) ? collect($individualSubjects)->where('subject_id', $totalAverageMarks['sub_subject_id'])->first() : null; $totalSubSubj = $totalSubSubjInfo['detail']['subject_name'] ?? null; $totalScriptType = $scriptTypes[$totalAverageMarks['sub_markstype']] ?? 'TOTAL'; // $totalScriptType = isset($totalAverageMarks) ? (isset($totalAverageMarks['sub_markstype']) ? $scriptTypes[$cqAverageMarks['sub_markstype']] : 'TOTAL') : null; @endphp @endforeach @endif @if(count($indExp) != $maxSubject) @php $difference = $maxSubject - count($indExp) @endphp @for($diff = 0; $diff < $difference; $diff++ ) @endfor @endif @empty @endforelse
Average Marking - As per Total Marks type
Subject Code with NameSubjects
Subject to be averaged from Script Type Percentage or Scale Number Capped to (Percentage)
{{ $subjectName ?? null }} - {{ $subjectCode ?? null }}{{ $totalSubSubj ?? null }} {{ $totalScriptType ?? null }} {{ isset($totalAverageMarks['scale']) ? (int)$totalAverageMarks['scale'] : null}} {{ isset($totalAverageMarks['add_number']) ? (int)$totalAverageMarks['add_number'] : null}} {{ isset($totalAverageMarks['cap']) ? (int)$totalAverageMarks['cap'] : null}}
No Data Found!
@endif