parent
2b8dcf4529
commit
daa76f2d98
@ -15,6 +15,14 @@ class Country extends Form
|
|||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
if (empty($this->name)) {
|
||||||
|
$this->name = 'country';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($this->selected) && empty($this->getParentData('model'))) {
|
||||||
|
$this->selected = setting('company.country');
|
||||||
|
}
|
||||||
|
|
||||||
return view('components.form.group.country');
|
return view('components.form.group.country');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
name="country"
|
name="country"
|
||||||
label="{!! trans_choice('general.countries', 1) !!}"
|
label="{!! trans_choice('general.countries', 1) !!}"
|
||||||
:options="trans('countries')"
|
:options="trans('countries')"
|
||||||
:selected="setting('company.country')"
|
:selected="$selected"
|
||||||
required="{{ $required }}"
|
required="{{ $required }}"
|
||||||
not-required="{{ $notRequired }}"
|
not-required="{{ $notRequired }}"
|
||||||
model="form.country"
|
model="form.country"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user