type = $type; $this->route = $route; $this->params = $params; $this->url = $url; $this->icon = $icon; $this->variant = $variant; $this->size = $size; $this->confirm = $confirm; $this->confirmUrl = $confirmUrl; $this->confirmName = $confirmName; } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.button-c-r-m'); } }