null,
'hasInlineLabel' => null,
'hasNestedRecursiveValidationRules' => null,
'helperText' => null,
'hint' => null,
'hintActions' => null,
'hintColor' => null,
'hintIcon' => null,
'hintIconTooltip' => null,
'id' => null,
'inlineLabelVerticalAlignment' => VerticalAlignment::Start,
'isDisabled' => null,
'label' => null,
'labelPrefix' => null,
'labelSrOnly' => null,
'labelSuffix' => null,
'labelTag' => 'label',
'required' => null,
'statePath' => null,
]));
foreach ($attributes->all() as $__key => $__value) {
if (in_array($__key, $__propNames)) {
$$__key = $$__key ?? $__value;
} else {
$__newAttributes[$__key] = $__value;
}
}
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
unset($__propNames);
unset($__newAttributes);
foreach (array_filter(([
'field' => null,
'hasInlineLabel' => null,
'hasNestedRecursiveValidationRules' => null,
'helperText' => null,
'hint' => null,
'hintActions' => null,
'hintColor' => null,
'hintIcon' => null,
'hintIconTooltip' => null,
'id' => null,
'inlineLabelVerticalAlignment' => VerticalAlignment::Start,
'isDisabled' => null,
'label' => null,
'labelPrefix' => null,
'labelSrOnly' => null,
'labelSuffix' => null,
'labelTag' => 'label',
'required' => null,
'statePath' => null,
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
$$__key = $$__key ?? $__value;
}
$__defined_vars = get_defined_vars();
foreach ($attributes->all() as $__key => $__value) {
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}
unset($__defined_vars); ?>
hasInlineLabel();
$hasNestedRecursiveValidationRules ??= $field instanceof \Filament\Forms\Components\Contracts\HasNestedRecursiveValidationRules;
$helperText ??= $field->getHelperText();
$hint ??= $field->getHint();
$hintActions ??= $field->getHintActions();
$hintColor ??= $field->getHintColor();
$hintIcon ??= $field->getHintIcon();
$hintIconTooltip ??= $field->getHintIconTooltip();
$id ??= $field->getId();
$isDisabled ??= $field->isDisabled();
$label ??= $field->getLabel();
$labelSrOnly ??= $field->isLabelHidden();
$required ??= $field->isMarkedAsRequired();
$statePath ??= $field->getStatePath();
}
$hintActions = array_filter(
$hintActions ?? [],
fn (\Filament\Forms\Components\Actions\Action $hintAction): bool => $hintAction->isVisible(),
);
$hasError = filled($statePath) && ($errors->has($statePath) || ($hasNestedRecursiveValidationRules && $errors->has("{$statePath}.*")));
?>
merge($field?->getExtraFieldWrapperAttributes() ?? [])
->class(['fi-fo-field-wrp'])); ?>
>
<
for=""
id="-label"
class="sr-only"
>
>
'filament-forms::components.field-wrapper.label','data' => ['for' => ($labelTag === 'label') ? $id : null,'id' => ($labelTag === 'label') ? null : ($id . '-label'),'tag' => $labelTag,'disabled' => $isDisabled,'prefix' => $labelPrefix,'required' => $required,'suffix' => $labelSuffix]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('filament-forms::field-wrapper.label'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes(['for' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(($labelTag === 'label') ? $id : null),'id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(($labelTag === 'label') ? null : ($id . '-label')),'tag' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($labelTag),'disabled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($isDisabled),'prefix' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($labelPrefix),'required' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($required),'suffix' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($labelSuffix)]); ?>
renderComponent(); ?>
'filament-forms::components.field-wrapper.hint','data' => ['actions' => $hintActions,'color' => $hintColor,'icon' => $hintIcon,'tooltip' => $hintIconTooltip]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('filament-forms::field-wrapper.hint'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes(['actions' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($hintActions),'color' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($hintColor),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($hintIcon),'tooltip' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($hintIconTooltip)]); ?>
renderComponent(); ?>
'filament-forms::components.field-wrapper.error-message','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('filament-forms::field-wrapper.error-message'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes([]); ?>
has($statePath) ? $errors->first($statePath) : ($hasNestedRecursiveValidationRules ? $errors->first("{$statePath}.*") : null)); ?>
renderComponent(); ?>
'filament-forms::components.field-wrapper.helper-text','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
withName('filament-forms::field-wrapper.helper-text'); ?>
shouldRender()): ?>
startComponent($component->resolveView(), $component->data()); ?>
except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
withAttributes([]); ?>
renderComponent(); ?>