@extends('backEnd.master') @section('title') @lang('system_settings.optional_subject') @endsection @section('mainContent')

@lang('system_settings.assign_optional_subject')

@if(userPermission('optional_subject_setup_post')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'optional_subject_setup_post', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }} @endif
@foreach($classes as $class)
id == @$editData->class_id? 'checked':''):''}}>
@endforeach
id, old('class'))) ? ' checked' : '' }}>
@if($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('gpa_above')) {{ $errors->first('gpa_above') }} @endif
@php $tooltip = ""; if(userPermission('optional_subject_setup_post') || userPermission('class_optional_edit')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}
@if(isset($class_optionals))

@lang('system_settings.optional_subject')

@php $i=0; @endphp @foreach($class_optionals as $class_optional) @endforeach
@lang('common.sl') @lang('common.class_name') @lang('reports.gpa_above') @lang('common.action')
{{++$i}} {{@$class_optional->class_name}} {{ number_format(@$class_optional->gpa_above, 2, '.', ' ')}}
@if(userPermission('class_optional_edit')) @lang('common.edit') @endif @if(userPermission('delete_optional_subject')) @lang('common.delete') @endif
@endif @endsection @include('backEnd.partials.data_table_js')