@if (isset($custom_fields) && $custom_fields)
@foreach ($custom_fields as $key => $custom_field) @if ($custom_field->type == 'textInput')
@if ($errors->has('customF.'.$custom_field->label)) {{ str_replace('custom f.', '', $errors->first('customF.'.$custom_field->label)) }} @endif
@elseif($custom_field->type == 'numericInput') @php $min_max_value = json_decode($custom_field->min_max_value); @endphp
@if ($errors->has('customF.'.$custom_field->label)) {{ str_replace('custom f.', '', $errors->first('customF.'.$custom_field->label)) }} @endif
@elseif($custom_field->type == 'multilineInput') @php $min_max_length = json_decode($custom_field->min_max_length); @endphp
@if ($errors->has('customF.'.$custom_field->label)) {{ str_replace('custom f.', '', $errors->first('customF.'.$custom_field->label)) }} @endif
@elseif($custom_field->type == 'datepickerInput')
@if ($errors->has('customF.'.$custom_field->label)) {{ str_replace('custom f.', '', $errors->first('customF.'.$custom_field->label)) }} @endif
@elseif($custom_field->type == 'checkboxInput') @php $checkbox_values = json_decode($custom_field->name_value); @endphp
@if ($checkbox_values) @foreach ($checkbox_values as $key => $checkbox_value)
id, $custom_field->label, $student->custom_field_form_name))) @if (in_array($checkbox_value, customFieldValue($student->id, $custom_field->label, $student->custom_field_form_name))) checked @endif @endif @endif value="{{ $checkbox_value }}">
@endforeach @endif
@elseif($custom_field->type == 'radioInput') @php $name_values = json_decode($custom_field->name_value); @endphp

{{ $custom_field->label }} {{ $custom_field->required == 1 ? '*' : '' }}

@if ($name_values) @foreach ($name_values as $key => $name_value)
id, $custom_field->label, $student->custom_field_form_name)) checked @endif value="{{ $name_value }}" class="common-radio relationButton">
@endforeach @endif
@elseif($custom_field->type == 'dropdownInput') @php $dropdown_name_values = json_decode($custom_field->name_value); @endphp
@if ($errors->has('customF.'.$custom_field->label)) {{ str_replace('custom field', '', $errors->first('customF.'.$custom_field->label)) }} @endif
@elseif($custom_field->type == 'fileInput')
@if ($errors->has($custom_field->label)) {{ @$errors->first($custom_field->label) }} @endif
@endif @endforeach
@endif @include('backEnd.partials.date_picker_css_js')