code = $code; } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|string */ public function render() { $code = ($this->code) ? $this->code : default_currency(); $this->currency = currency($code)->getName(); return view('components.index.currency'); } }