@php $include_js = false; @endphp @forelse($list_custom_fields as $custom_field)
@if($custom_field->type == 'number') is_required ? 'required' : '' }}> @elseif($custom_field->type == 'textarea') " : "</textarea>" !!} @elseif($custom_field->type == 'date') @php $include_js = true; @endphp
is_required ? 'required' : '' }}>
@elseif($custom_field->type == 'radio') @foreach (\App\Http\Helper\Helper::splitLineBreakWithComma($custom_field->values) as $value)
@endforeach @elseif($custom_field->type == 'checkbox') @foreach (\App\Http\Helper\Helper::splitLineBreakWithComma($custom_field->values) as $value) @php $contact_data_chks = !empty($contact_data) && !empty($contact_data[$custom_field->custom_field_id]) ? preg_split("/(,|[||])/", $contact_data[$custom_field->custom_field_id]) : ''; if(!empty($contact_data_chks)) {$contact_data_chks = array_map('trim', $contact_data_chks);} @endphp
@endforeach @elseif($custom_field->type == 'dropdown') @else is_required ? 'required' : '' }}> @endif
@empty @if(empty($no_custom_fileld_empty_msg)) @else @endif @endforelse @if($include_js) @endif