@extends('backEnd.master') @section('title') @lang('exam.exam_type') @endsection @push('css') @endpush @section('mainContent')
@if(isset($exam_type_edit)) @if(userPermission('exam_type_store')) @endif @endif
@if(isset($exam_type_edit)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'exam_type_update', 'method' => 'POST']) }} @else @if(userPermission('exam_type_store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'exam_type_store', 'method' => 'POST']) }} @endif @endif

@if(isset($exam_type_edit)) @lang('exam.edit_exam_type') @else @lang('exam.add_exam_type') @endif

@if ($errors->has('exam_type_title')) {{ $errors->first('exam_type_title') }} @endif
is_average == 1 ? 'checked' : '') : Request::old('is_average')}} {{old('is_average') == 'yes' ? 'checked' : ''}}>
@error('average_mark') {{ $message }} @enderror
@php $tooltip = ""; if(userPermission('exam_type_store') || userPermission('exam_type_edit')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('exam.exam_type_list')

@php $i=0; @endphp @foreach($exams_types as $exams_type) @endforeach
@lang('common.sl') @lang('exam.exam_name') @lang('exam.is_average_passing_exam') @lang('exam.average_mark') @lang('common.action')
{{++$i}} {{ @$exams_type->title}} {{ $exams_type->is_average == 1 ? __('common.yes') : __('common.no')}} {{ number_format($exams_type->average_mark, 2, '.', '') }} @if(userPermission('exam_type_edit')) @lang('common.edit') @endif @if(userPermission('exam_type_delete')) @lang('common.delete') @endif @lang('exam.exam_setup')
@endsection @include('backEnd.partials.data_table_js') @push('script') @endpush