@foreach (collect(json_decode($user->company->custom_fields_metadata ?: '[]'))->where('model', 'client')->all() as $key => $field)
@if ($field->type === 'checkbox')
@elseif ($field->type === 'date')
required) ? ' required' : '' }} value="{{ $field->default }}">
@elseif ($field->type === 'email')
required) ? ' required' : '' }} value="{{ $field->default }}">
@elseif ($field->type === 'hidden')
@elseif ($field->type === 'number')
required) ? ' required' : '' }} value="{{ $field->default }}">
@elseif ($field->type === 'select')
@foreach ($field->default->choices as $option)
@endforeach
@if (count($field->default->choices) > 2)
@else
@foreach ($field->default->choices as $option)
@endforeach
@endif
@elseif ($field->type === 'tel')
required) ? ' required' : '' }} value="{{ $field->default }}">
@elseif ($field->type === 'text')
required) ? ' required' : '' }} value="{{ $field->default }}">
@else
@endif
@endforeach