@php $isEdit = isset($property); $currentType = old('property_type', $isEdit ? $property->property_type : 'casa'); $details = old('details', $isEdit ? ($property->details ?? []) : []); $publishPortals = old('publish_portals', $isEdit ? $property->publish_portals : true); @endphp