name = $name; return $this; } public function getName(): string { return $this->name; } public function getLabel(): string | Htmlable | null { $label = parent::getLabel() ?? (string) str($this->getName()) ->afterLast('.') ->kebab() ->replace(['-', '_'], ' ') ->ucfirst(); return (is_string($label) && $this->shouldTranslateLabel) ? __($label) : $label; } }