@php use Filament\Forms\Components\Contracts\HasNestedRecursiveValidationRules; use Filament\Forms\Components\Field; $fieldWrapperView = $getFieldWrapperView(); $errorMessage = null; foreach ($getChildComponentContainer()->getComponents() as $childComponent) { if (! ($childComponent instanceof Field)) { continue; } $statePath = $childComponent->getStatePath(); if (blank($statePath)) { continue; } if ($errors->has($statePath)) { $errorMessage = $errors->first($statePath); $areHtmlValidationMessagesAllowed = $childComponent->areHtmlValidationMessagesAllowed(); break; } if (! ($childComponent instanceof HasNestedRecursiveValidationRules)) { continue; } if ($errors->has("{$statePath}.*")) { $errorMessage = $errors->first("{$statePath}.*"); $areHtmlValidationMessagesAllowed = $childComponent->areHtmlValidationMessagesAllowed(); break; } } @endphp
merge([ 'id' => $getId(), ], escape: false) ->merge($getExtraAttributes(), escape: false) ->class(['fi-sc-fused-group']) }} > {{ $getChildSchema() }}