@foreach($fieldTemplates[$type] as $field)
@php
$currentValue = $oldTypeDetails !== null
? ($oldTypeDetails[$field->field_key] ?? null)
: (isset($property) && is_array($property->type_details)
? ($property->type_details[$field->field_key] ?? null)
: null);
$isDependent = !empty($field->depends_on);
@endphp
@if($field->field_type === 'select')
@elseif($field->field_type === 'boolean')
@elseif($field->field_type === 'number')
is_required) data-required="1" @endif
disabled>
@elseif($field->field_type === 'textarea')
@else
is_required) data-required="1" @endif
disabled>
@endif