@extends('layouts.master') @section('content')
@csrf
{{ generateDropdown($exams, 'class="form-control exam_id" id="exam_id" name="exam_id" required', $exam_id, 'Exam') }}
{{ generateDropdown($academicYears, 'name="academic_year" class="form-control shift_id" id="shift_id"', $academic_year, "Year") }}
{{ generateDropdown($shifts, 'class="form-control shift_id" id="shift_id" name="shift_id"', $shift_id, "Shift") }}
{{ generateDropdown($studentClasses, 'class="form-control student_class select2" id="student_class" name="student_class_id" required', $student_class_id, "Class") }}
{{ generateDropdown('', 'class="form-control section_id" id="section_id" name="section_id"', $section_id, "Section") }}
{{ generateDropdown('', 'class="form-control subject_id" id="subject_id" name="subject_id" required', '', "Sublect") }}
{{ generateDropdown($groups, 'class="form-control group_id" id="group_id" name="group_id"', $group_id, "Group") }}
Mark List
@can('exam-result.marks-list.create') Add New @endcan
@if ($marks && $assignedMarksHead) {{-- --}} @php $head_marks_array = json_decode($assignedMarksHead->head_marks, true); $head_id_array = array_keys($head_marks_array); @endphp {{-- @dd($marks) --}} @foreach ($marks as $mark) @php $head_wise_marks = json_decode($mark->head_wise_marks); $total_obtain = 0; $full_marks = 0; $head_wise_obtain = ''; @endphp {{-- --}} @foreach ($markHeads as $head) @if (in_array($head->id,$head_id_array)) @php $full_marks += $head_marks_array[$head->id]; @endphp @endif @endforeach @foreach ($head_wise_marks as $head => $single_marks) @if (!empty($single_marks)) @php $total_obtain += $single_marks; $marks_heads = $markHeads->pluck('short_name', 'id'); $head_wise_obtain .= " $marks_heads[$head] = $single_marks "; @endphp @endif @endforeach @endforeach
Roll NameExam Class Section YearSubject Full Marks Separate
Marks
Total obtain Highest Marks Action
{{ $mark->student?->class_roll }} {{ $mark->student?->first_name.' '.$mark->student?->last_name }} {{ $mark->exam?->exam_name }} {{ $mark->studentClass?->class_name }} {{ $mark->section?->section_name }} {{ $mark->academicYear?->year }}{{ $mark->subject?->subject_name }}{{ $full_marks }}
{!! $head_wise_obtain !!}
{{ $total_obtain }} {{ $highest_marks }}
@can('exam-result.marks-list.edit') Edit @endcan @can('exam-result.marks-list.delete') @endcan
@else
There is no data accourding to your search. Please entry Mark's by going to 'Add New'.
@endif
@stop @section('scripts') @endsection