{{-- Renders one dynamic attribute as the control its type calls for. Nothing in here knows what a bedroom or a mileage is: the attribute record carries the type, the unit, the options and whether the category requires it, and this partial reads those. That is what lets a new vertical appear without a template change. --}} @php $name = 'attributes['.$attribute->code.']'; $id = 'attribute-'.$attribute->code; $required = (bool) $attribute->pivot->is_required; $error = $errors->first('attributes.'.$attribute->code); $label = $attribute->name.($attribute->unit ? ' ('.$attribute->unit.')' : ''); $limits = $attribute->validation ?? []; @endphp
{{ $attribute->help_text }}
@endif @endif @if ($error){{ $error }}
@endif