@extends('layouts.master') @section('content')
{{ generateDropdown($studentClasses,'class="form-control select2" id="student_class" name="student_class"', $student_class_id, 'Select Class') }}
Assigned List @can('exam-result.assign-head.create') Assign Head Marks @endcan
@if ($assignMarksHead) @foreach($assignMarksHead as $assign_heads) @foreach ($assign_heads as $index => $a_head) @php $head_marks = json_decode($a_head->head_marks, true); @endphp @if ($index==0) @endif @if ($index==0) @endif @endforeach @endforeach
Exam Class Subject Head Marks Action
{{$a_head->exam->exam_name}} ({{$a_head->exam->academic_year->year}}) {{$a_head->studentClass->class_name}}{{$a_head->subject->subject_name}} @foreach ($head_marks as $head_id => $marks) @php $head_name = isset($mark_heads[$head_id]) ? $mark_heads[$head_id] : 'Unknown Head'; @endphp {{ $head_name }}: {{ $marks }} @endforeach @can('exam-result.assign-head.edit') Edit @endcan @can('exam-result.assign-head.edit')
@csrf @method('DELETE')
@endcan
@else There is no data. Search with exam & class to see list. @endif
@stop