name = $name; $this->value = $value; $this->checked = filter_var($checked, FILTER_VALIDATE_BOOLEAN); } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.input.switch'); } }