@extends('backEnd.master') @section('title') @lang('student.student_registration') @endsection @section('mainContent')
@if (isset($v_custom_field)) @endif

@if (isset($v_custom_field)) @lang('student.edit_custom_field') @else @lang('student.add_custom_field') @endif

@if (isset($v_custom_field)) {{ Form::open(['class' => 'form-horizontal', 'route' => 'update-student-registration-custom-field', 'method' => 'POST']) }} @else {{ Form::open(['class' => 'form-horizontal', 'route' => 'store-student-registration-custom-field', 'method' => 'POST']) }} @endif @include('backEnd.customField._custom_form', ['type' => 'student_online_regi']) {{ Form::close() }}

@lang('student.custom_field_list')

@if (moduleStatusCheck('ParentRegistration') == true) {{-- added for online student registration custom field showing --abunayem --}} @endif @foreach ($custom_fields as $key => $custom_field) @php $v_lengths = json_decode($custom_field->min_max_length); $v_values = json_decode($custom_field->min_max_value); $v_name_values = json_decode($custom_field->name_value); @endphp @if (moduleStatusCheck('ParentRegistration') == true) {{-- added for online student registration custom field showing --abunayem --}} @endif @endforeach
@lang('common.sl') @lang('student.label') @lang('common.type') @lang('student.width') @lang('student.required') @lang('student.value')@lang('student.available_for_online_registration')@lang('common.actions')
{{ $key + 1 }} {{ $custom_field->label }} @if ($custom_field->type == 'textInput') @lang('student.text_input') @elseif ($custom_field->type == 'numericInput') @lang('student.numeric_input') @elseif ($custom_field->type == 'multilineInput') @lang('student.multiline_input') @elseif ($custom_field->type == 'datepickerInput') @lang('student.datepicker_input') @elseif ($custom_field->type == 'checkboxInput') @lang('student.checkbox_input') @elseif ($custom_field->type == 'radioInput') @lang('student.radio_input') @elseif ($custom_field->type == 'dropdownInput') @lang('student.dropdown_input') @else @lang('student.file_input') @endif
@if ($custom_field->type == 'textInput' || $custom_field->type == 'multilineInput') @lang('student.min_length') : {{ $v_lengths[0] }}
@lang('student.max_length') : {{ $v_lengths[1] }}
@endif @if ($custom_field->type == 'numericInput') @lang('student.min_value') : {{ $v_values[0] }}
@lang('student.max_value') : {{ $v_values[1] }}
@endif
@if ($custom_field->width == 'col-12') @lang('student.full_width') @elseif ($custom_field->width == 'col-6') @lang('student.half_width') @elseif ($custom_field->width == 'col-4') @lang('student.one_fourth_width') @elseif($custom_field->width == 'col-3') @lang('student.one_thired_width') @endif @if ($custom_field->required == 1) @lang('student.required') @else @lang('student.not_required') @endif @if ( $custom_field->type == 'checkboxInput' || $custom_field->type == 'radioInput' || $custom_field->type == 'dropdownInput') @if ($v_name_values) @foreach ($v_name_values as $v_name_value) {{ @$v_name_value }}@if (!$loop->last), @endif @endforeach @endif @endif @if ($custom_field->is_showing == 1) @lang('common.yes') @else @lang('common.no') @endif @if (userPermission(1103)) @lang('common.edit') @endif @if (userPermission(1104)) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')