@extends('backend.layouts.master') @section('pageTitle') Grade @endsection @section('pageContent') Grade @if($grade) Update @else Add New @endif Dashboard Grade @if($grade) Update @else Add @endif Note: If not need any of the rule then leave as it is. @csrf Name* {{ $errors->first('name') }} Grading Rules* Grade Point Marks From Marks Upto @if($grade) @php $rules = json_decode($grade->rules); $formatedRules = []; foreach ($rules as $rule){ $formatedRules[$rule->grade] = ['point' => $rule->point,'marks_from' => $rule->marks_from,'marks_upto' => $rule->marks_upto]; } @endphp @endif @foreach(AppHelper::GRADE_TYPES as $key => $rgrade) {{$rgrade}} @endforeach {{ $errors->first('grade') }} {{ $errors->first('point') }} {{ $errors->first('marks_from') }} {{ $errors->first('marks_upto') }} @endsection @section('extraScript') @endsection
Note: If not need any of the rule then leave as it is.