25 lines
979 B
PHP
25 lines
979 B
PHP
@php
|
|
$fieldWrapperView = $getFieldWrapperView();
|
|
$placeholder = $getPlaceholder();
|
|
$extraAttributes = $getExtraAttributeBag()
|
|
->merge($getExtraInputAttributes(), escape: false)
|
|
->merge($getExtraAlpineAttributes(), escape: false)
|
|
->merge([
|
|
'autocomplete' => false,
|
|
'autofocus' => $isAutofocused(),
|
|
'disabled' => $isDisabled(),
|
|
'id' => $getId(),
|
|
'length' => $getLength(),
|
|
'placeholder' => filled($placeholder) ? e($placeholder) : null,
|
|
'readonly' => $isReadOnly(),
|
|
'required' => $isRequired() && (! $isConcealed()),
|
|
$applyStateBindingModifiers('wire:model') => $getStatePath(),
|
|
], escape: false);
|
|
@endphp
|
|
|
|
<x-dynamic-component :component="$fieldWrapperView" :field="$field">
|
|
<x-filament::input.one-time-code
|
|
:attributes="\Filament\Support\prepare_inherited_attributes($extraAttributes)"
|
|
/>
|
|
</x-dynamic-component>
|