@extends('layouts.master') @section('content')
@csrf
{{ generateDropdown($exams, 'class="form-control exam_id" id="exam_id" name="exam_id" required', $exam_id, 'Select Exam') }}
{{ generateDropdown($academicYears, 'name="academic_year" class="form-control shift_id" id="shift_id"', $academic_year, "Select Year") }}
{{ generateDropdown($shifts, 'class="form-control shift_id" id="shift_id" name="shift_id"', $shift_id, "Select Shift") }}
{{ generateDropdown($studentClasses, 'class="form-control select2 student_class" id="student_class" name="student_class_id" required', $student_class_id, "Select Class") }}
{{ generateDropdown([], 'class="form-control section_id" id="section_id" name="section_id"', $section_id, 'Select Section') }}
{{ generateDropdown('', 'class="form-control subject_id" id="subject_id" name="subject_id" required', '', "--Select Sublect--") }}
{{ generateDropdown($groups, 'class="form-control group_id" id="group_id" name="group_id"', $group_id, 'Select Group') }}
@if (isset($students))
@csrf
@if($assignedMarksHead) @php $head_marks_array = json_decode($assignedMarksHead->head_marks, true); $head_id_array = array_keys($head_marks_array); @endphp @if (isset($head_id_array)) @foreach ($markHeads as $head) @if (in_array($head->id,$head_id_array)) @endif @endforeach @endif @foreach ($students as $student) @if (isset($head_id_array) && $student->examRecords->isNotEmpty()) @php $head_wise_marks = json_decode($student->examRecords->first()->head_wise_marks); @endphp @foreach ($markHeads as $head) @if (in_array($head->id, $head_id_array)) @endif @endforeach @elseif (isset($head_id_array)) @foreach ($markHeads as $head) @if (in_array($head->id, $head_id_array)) @endif @endforeach @endif @endforeach
Name Section Roll{{$head->short_name}}({{$head_marks_array[$head->id]}})
{{$student->first_name}} {{$student->last_name}} {{$student->section?->section_name ?? '--'}} {{$student->class_roll}} @if (isset($head_wise_marks->{$head->id})) @else @endif
@else
Mark's head is not assigned for this Exam/Class yet. Please assign Mark's head, and then try.
@endif
@if($assignedMarksHead)
@endif
@endif @stop @section('scripts') @endsection