part = null; if($part != null)$this->part = $part; $this->odd = $odd; if($bgcolor != null) $this->bgcolor = $bgcolor; } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|\Closure|string */ public function render() { $part = $this->part; $odd = $this->odd; $bgcolor = $this->bgcolor; return view('components.content-part', compact(['part', 'odd', 'bgcolor'])); } }