class(['filament-forms-field-wrapper']) }}>
@if ($label && $labelSrOnly)
@if (($label && (! $labelSrOnly)) || $labelPrefix || $labelSuffix || $hint || $hintIcon || $hintAction)
@if ($label && (! $labelSrOnly))
{{ $label }}
@elseif ($labelPrefix)
{{ $labelPrefix }}
@elseif ($labelSuffix)
{{ $labelSuffix }}
@endif
@if ($hint || $hintIcon || $hintAction)
{{ filled($hint) ? ($hint instanceof \Illuminate\Support\HtmlString ? $hint : \Illuminate\Support\Str::of($hint)->markdown()->sanitizeHtml()->toHtmlString()) : null }}
@endif
@endif
{{ $slot }}
@if ($errors->has($statePath) || ($hasNestedRecursiveValidationRules && $errors->has("{$statePath}.*")))
{{ $errors->first($statePath) ?: ($hasNestedRecursiveValidationRules ? $errors->first("{$statePath}.*") : null) }}
@endif
@if ($helperText)
{{ $helperText instanceof \Illuminate\Support\HtmlString ? $helperText : \Illuminate\Support\Str::of($helperText)->markdown()->sanitizeHtml()->toHtmlString() }}
@endif