@php use Filament\Support\Facades\FilamentView; $fieldWrapperView = $getFieldWrapperView(); $datalistOptions = $getDatalistOptions(); $disabledDates = $getDisabledDates(); $extraAlpineAttributes = $getExtraAlpineAttributes(); $extraAttributeBag = $getExtraAttributeBag(); $extraInputAttributeBag = $getExtraInputAttributeBag(); $hasTime = $hasTime(); $id = $getId(); $isDisabled = $isDisabled(); $isAutofocused = $isAutofocused(); $isPrefixInline = $isPrefixInline(); $isSuffixInline = $isSuffixInline(); $maxDate = $getMaxDate(); $minDate = $getMinDate(); $prefixActions = $getPrefixActions(); $prefixIcon = $getPrefixIcon(); $prefixIconColor = $getPrefixIconColor(); $prefixLabel = $getPrefixLabel(); $suffixActions = $getSuffixActions(); $suffixIcon = $getSuffixIcon(); $suffixIconColor = $getSuffixIconColor(); $suffixLabel = $getSuffixLabel(); $statePath = $getStatePath(); $placeholder = $getPlaceholder(); $isReadOnly = $isReadOnly(); $isRequired = $isRequired(); $isConcealed = $isConcealed(); $step = $getStep(); $type = $getType(); $livewireKey = $getLivewireKey(); @endphp @if ($isNative()) merge($extraAlpineAttributes, escape: false) ->merge([ 'autofocus' => $isAutofocused, 'disabled' => $isDisabled, 'id' => $id, 'list' => $datalistOptions ? $id . '-list' : null, 'max' => $hasTime ? $maxDate : ($maxDate ? \Carbon\Carbon::parse($maxDate)->toDateString() : null), 'min' => $hasTime ? $minDate : ($minDate ? \Carbon\Carbon::parse($minDate)->toDateString() : null), 'placeholder' => $placeholder, 'readonly' => $isReadOnly, 'required' => $isRequired && (! $isConcealed), 'step' => $step, 'type' => $type, $applyStateBindingModifiers('wire:model') => $statePath, 'x-data' => count($extraAlpineAttributes) ? '{}' : null, ], escape: false) ->class([ 'fi-input', 'fi-input-has-inline-prefix' => $isPrefixInline && (count($prefixActions) || $prefixIcon || filled($prefixLabel)), 'fi-input-has-inline-suffix' => $isSuffixInline && (count($suffixActions) || $suffixIcon || filled($suffixLabel)), ]) }} /> @else
@if ($hasDate())
@endif @if ($hasTime)
: @if ($hasSeconds()) : @endif
@endif
@endif
@if ($datalistOptions) @foreach ($datalistOptions as $option) @endif