@extends('backEnd.master') @section('title') @lang('exam.marks_grade') @endsection @section('mainContent')
@if(isset($marks_grade)) @if(userPermission("marks-grade-store")) @endif @endif
@if(isset($marks_grade)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('marks-grade-update',$marks_grade->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission("marks-grade-store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'marks-grade-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if(isset($marks_grade)) @lang('exam.edit_grade') @else @lang('exam.add_grade') @endif

@if ($errors->has('grade_name')) {{ $errors->first('grade_name') }} @endif
@if(generalSetting()->result_type != 'mark')
@if ($errors->has('gpa')) {{ $errors->first('gpa') }} @endif
@endif
@if ($errors->has('percent_from')) {{ $errors->first('percent_from') }} @endif
@if ($errors->has('percent_upto')) {{ $errors->first('percent_upto') }} @endif
@if(generalSetting()->result_type != 'mark')
@if ($errors->has('grade_from')) {{ $errors->first('grade_from') }} @endif
@if ($errors->has('grade_upto')) {{ $errors->first('grade_upto') }} @endif
@endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@php $tooltip = ""; if(userPermission("marks-grade-store") || userPermission("marks-grade-edit")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('exam.grade_list')

@if(generalSetting()->result_type != 'mark') @endif @php $i=1; @endphp @foreach($marks_grades as $marks_grade) @if(generalSetting()->result_type != 'mark') @endif @endforeach
@lang('common.sl') @lang('exam.grade') @lang('exam.gpa') @lang('exam.percent_from_to') @if(generalSetting()->result_type == 'mark') @lang('common.description') @else @lang('exam.gpa_from_to') @endif @lang('common.action')
{{ @$i++}} {{ @$marks_grade->grade_name}} {{ @$marks_grade->gpa}} {{ @$marks_grade->percent_from}}-{{ @$marks_grade->percent_upto}}% @if(generalSetting()->result_type == 'mark') {{ @$marks_grade->description}} @else {{ @$marks_grade->from}}-{{ @$marks_grade->up}} @endif @if(userPermission('marks-grade-edit')) @lang('common.edit') @endif @if(userPermission('marks-grade-delete')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')