@props([ 'id', 'label' => null, 'labelPrefix' => null, 'labelSrOnly' => false, 'labelSuffix' => null, 'hasNestedRecursiveValidationRules' => false, 'helperText' => null, 'hint' => null, 'hintColor' => null, 'hintIcon' => null, 'hintAction' => null, 'required' => false, 'statePath', ])
class(['filament-forms-field-wrapper']) }}> @if ($label && $labelSrOnly) @endif
@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