Company form add tax_number and phone fields..
This commit is contained in:
parent
e709c29201
commit
8d76babea3
@ -92,6 +92,8 @@ class CreateCompany extends Job
|
||||
setting()->set([
|
||||
'company.name' => $this->request->get('name'),
|
||||
'company.email' => $this->request->get('email'),
|
||||
'company.tax_number' => $this->request->get('tax_number'),
|
||||
'company.phone' => $this->request->get('phone'),
|
||||
'company.address' => $this->request->get('address'),
|
||||
'default.currency' => $this->request->get('currency'),
|
||||
'default.locale' => $this->request->get('locale', 'en-GB'),
|
||||
|
@ -58,6 +58,14 @@ class UpdateCompany extends Job
|
||||
setting()->set('company.email', $this->request->get('email'));
|
||||
}
|
||||
|
||||
if ($this->request->has('tax_number')) {
|
||||
setting()->set('company.tax_number', $this->request->get('tax_number'));
|
||||
}
|
||||
|
||||
if ($this->request->has('phone')) {
|
||||
setting()->set('company.phone', $this->request->get('phone'));
|
||||
}
|
||||
|
||||
if ($this->request->has('address')) {
|
||||
setting()->set('company.address', $this->request->get('address'));
|
||||
}
|
||||
|
@ -25,6 +25,10 @@
|
||||
|
||||
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale', config('app.locale', 'en-GB')), []) }}
|
||||
|
||||
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], setting('company.tax_number')) }}
|
||||
|
||||
{{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], setting('company.phone')) }}
|
||||
|
||||
{{ Form::textareaGroup('address', trans('general.address')) }}
|
||||
|
||||
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
|
||||
|
@ -26,6 +26,10 @@
|
||||
|
||||
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), $company->locale ?? config('app.locale', 'en-GB'), []) }}
|
||||
|
||||
{{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], $company->tax_number) }}
|
||||
|
||||
{{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], $company->phone) }}
|
||||
|
||||
{{ Form::textareaGroup('address', trans('general.address')) }}
|
||||
|
||||
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user