name; } private function getTitle(): string { return Str::ucfirst($this->title); } private function getCheckboxValue(): string { return (string) old($this->getRequestName(), $this->checkboxValue); } public function getUserValue(): string { return (string) $this->userValue; } public function getNotCheckedValue(): ?string { return $this->notCheckedValue; } /** * @inheritDoc */ public function render(): View { return view('private.components.forms.checkbox', [ 'title' => $this->getTitle(), 'name' => $this->getName(), 'requestName' => $this->getRequestName(), 'checkboxValue' => $this->getCheckboxValue(), 'userValue' => $this->getUserValue(), 'notCheckedValue' => $this->getNotCheckedValue(), ]); } }