Index country component issue solved..
This commit is contained in:
parent
a1f94055d9
commit
419d457b02
@ -27,6 +27,7 @@ class Country extends Component
|
|||||||
*/
|
*/
|
||||||
public function __construct($code) {
|
public function __construct($code) {
|
||||||
$this->code = $code;
|
$this->code = $code;
|
||||||
|
$this->country = trans('general.na');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,7 +37,9 @@ class Country extends Component
|
|||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
$this->country = trans('countries.' . $this->code);
|
if (! empty($this->code)) {
|
||||||
|
$this->country = trans('countries.' . $this->code);
|
||||||
|
}
|
||||||
|
|
||||||
return view('components.index.country');
|
return view('components.index.country');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user