public function render()
    {
        return view('toggle-switch-button::components.toggle-switch-button', [
            'name'    => $this->name,
            'checked' => $this->checked,
            'icon'    => $this->icon,
            'label'   => $this->label,
        ])->render();
    }
public function render()
    {
        return view('toggle-switch-button::components.toggle-switch-button', [
            'name'    => $this->name,
            'checked' => $this->checked,
            'icon'    => $this->icon,
            'label'   => $this->label,
        ])->render();
    }
public function render ( ) { return view ( 'toggle-switch-button::components.toggle-switch-button' , [ 'name' => $ this -> name , 'checked' => $ this -> checked , 'icon' => $ this -> icon , 'label' => $ this -> label , ] ) -> render ( ) ; }
Render the toggle switch button.

@return string
@throws \Throwable
Render the toggle switch button .