rounded = $rounded; $this->border = $border; $this->color = $this->getColor($color); $this->icon = $this->getIcon($icon); $this->title = $title; $this->description = $description; $this->list = $list; $this->actions = $actions; $this->dismiss = $dismiss; } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|string */ public function render() { return view('components.alert.index'); } protected function getColor($color) { if (! empty($color)) { return $color; } $color = 'green'; return $color; } protected function getIcon($icon) { if (! empty($icon)) { return $icon; } $icon = 'check_circle'; return $icon; } }