@php $include_js = false; @endphp @forelse($list_custom_fields as $custom_field)
@if($custom_field->type == 'number') @elseif($custom_field->type == 'textarea') @elseif($custom_field->type == 'date') @php $include_js = true; @endphp
@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 @endif
@empty @endforelse @if($include_js) @endif