@extends('backEnd.master') @section('title') @lang('hr.donor_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-donor-custom-field', 'method' => 'POST']) }} @else {{ Form::open(['class' => 'form-horizontal', 'route' => 'store-donor-registration-custom-field', 'method' => 'POST']) }} @endif @include('backEnd.customField._custom_form') {{ Form::close() }}

@lang('student.custom_field_list')

@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 @endforeach
@lang('common.sl') @lang('student.label') @lang('common.type') @lang('student.width') @lang('student.required') @lang('student.value') @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-lg-12') @lang('student.full_width') @elseif ($custom_field->width == 'col-lg-6') @lang('student.half_width') @elseif ($custom_field->width == 'col-lg-4') @lang('student.one_fourth_width') @elseif($custom_field->width == 'col-lg-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 }}, @endforeach @endif @endif
@endsection @include('backEnd.partials.data_table_js')