Index country component issue solved..

This commit is contained in:
Cüneyt Şentürk 2022-06-29 18:24:04 +03:00
parent a1f94055d9
commit 419d457b02

View File

@ -27,6 +27,7 @@ class Country extends Component
*/
public function __construct($code) {
$this->code = $code;
$this->country = trans('general.na');
}
/**
@ -36,7 +37,9 @@ class Country extends Component
*/
public function render()
{
$this->country = trans('countries.' . $this->code);
if (! empty($this->code)) {
$this->country = trans('countries.' . $this->code);
}
return view('components.index.country');
}