@foreach ($client->customFields as $custom_field)
@if ($custom_field->type === 'checkbox')
@elseif ($custom_field->type === 'date')
required) ? ' required' : '' }} value="{{ $custom_field->value }}">
@elseif ($custom_field->type === 'email')
required) ? ' required' : '' }} value="{{ $custom_field->value }}">
@elseif ($custom_field->type === 'hidden')
@elseif ($custom_field->type === 'number')
required) ? ' required' : '' }} value="{{ $custom_field->value }}">
@elseif ($custom_field->type === 'select')
@foreach (json_decode($custom_field->value)->choices as $option)
@endforeach
@if (count(json_decode($custom_field->value)->choices) > 2)
@else
@foreach (json_decode($custom_field->value)->choices as $option)
@endforeach
@endif
@elseif ($custom_field->type === 'tel')
required) ? ' required' : '' }} value="{{ $custom_field->default }}">
@elseif ($custom_field->type === 'text')
required) ? ' required' : '' }} value="{{ $custom_field->default }}">
@else
@endif
@endforeach