@extends('backend.layouts.master') @section('pageTitle') Marks @endsection @section('pageContent') Marks Update Dashboard Marks Marks Update @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @csrf Student Name Roll No. @php $marksDistributions = json_decode($examRule->marks_distribution); @endphp @foreach($marksDistributions as $distribution) @if($distribution->total_marks > 0) {{AppHelper::MARKS_DISTRIBUTION_TYPES[$distribution->type]}} @endif @endforeach Total Marks Absent {{$marks->student->info->name}} [{{$marks->student->regi_no}}] {{$marks->student->roll_no}} @php $achivemarks = json_decode($marks->marks, true); @endphp @foreach($marksDistributions as $distribution) @if($distribution->total_marks > 0) present == 0) readonly @endif class="form-control" name="type[{{$distribution->type}}]" value="{{$achivemarks[$distribution->type]}}" required max="{{$distribution->total_marks}}" min="0"> @endif @endforeach present == 0) checked @endif name="absent"> Update Marks @endsection @section('extraScript') @endsection