@props([ 'name' => null, 'type' => 'text', 'item' => null, 'info_tooltip_text' => null, 'help_text' => null, 'help_html' => null, 'help_icon' => null, 'label' => null, 'label_class' => 'col-md-3', 'input_div_class' => 'col-md-7', 'help_class' => 'col-md-9 col-md-offset-3', 'input_icon' => null, 'input_group_addon' => null, 'maxlength' => null, 'min' => null, 'max' => null, 'rows' => null, 'placeholder' => null, 'default' => null, 'end_date' => null, 'default_now' => true, 'side_by_side' => false, 'stacked' => false, 'id' => null, 'required' => null, ]) {{-- Inherit `stacked` from an ancestor so callers don't repeat the flag on every row inside a vertical modal. @aware unconditionally overwrites $stacked, so we snapshot the row's explicit value first and OR the two after aware runs. Row-explicit stacked=true still wins if the modal is horizontal. --}} @php $callerStacked = $stacked; @endphp @aware(['stacked' => false]) @php $stacked = $callerStacked || $stacked; $errors_class = $errors->has($name) ? ' has-error' : ''; $input_id = $id ?? $name; @endphp
merge(['class' => 'form-group'.$errors_class]) }}> {{-- x-slot:labelHtml overrides the label prop when you need custom markup (JS-driven data-label-* attributes, an inline icon, etc). Otherwise the label prop renders through x-form.label (horizontal) or a plain