@if($custom_fields->count() > 0) @foreach($custom_fields as $custom_field)
@switch($custom_field->type) @case('string') required == 1) ? 'required' : '' }} placeholder="Enter {{ $custom_field->title }}" value="{{ (isset($modelObj)) ? $modelObj->{$custom_field->slug} : old($custom_field->slug) }}"> @break @case('long_text') @break @case('bool') {{-- --}}
required == 1) ? 'required' : '' }} id="{{ $custom_field->slug }}" class="form-check-input ml-5 customField {{ ($custom_field->required == 1) ? 'required_for_valid' : '' }}" {{ (isset($modelObj) and $modelObj->{$custom_field->slug} == 1) ? 'checked=checked' : '' }}>
@break @case('dropdown') @break @case('number') required == 1) ? 'required' : '' }} placeholder="Enter {{ $custom_field->title }}" value="{{ (isset($modelObj)) ? $modelObj->{$custom_field->slug} : old($custom_field->slug) }}"> @break @case('date') required == 1) ? 'required' : '' }} placeholder="Enter {{ $custom_field->title }}" value="{{ (isset($modelObj)) ? $modelObj->{$custom_field->slug} : old($custom_field->slug) }}"> @break @default required == 1) ? 'required' : '' }} placeholder="Enter {{ $custom_field->title }}" value="{{ (isset($modelObj)) ? $modelObj->{$custom_field->slug} : old($custom_field->slug) }}"> @endswitch {{ $errors->first($custom_field->slug) }}
@endforeach @endif