*/ public function getChildComponentContainers(bool $withHidden = false): array { if ((! $withHidden) && $this->isHidden()) { return []; } $containers = []; foreach ($this->getState() ?? [] as $itemKey => $itemData) { $container = $this ->getChildComponentContainer() ->getClone() ->statePath($itemKey) ->inlineLabel(false); if ($itemData instanceof Model) { $container->record($itemData); } $containers[$itemKey] = $container; } return $containers; } }