snippet = null; if ($snippet != null) { $this->snippet = $snippet; } $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() { $snippet = $this->snippet; $odd = $this->odd; $bgcolor = $this->bgcolor; return view('fo.components.content-snippet', compact(['snippet', 'odd', 'bgcolor'])); } }