Skip to content

Commit

Permalink
country fields data dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSenturk committed Oct 6, 2021
1 parent 6ecc518 commit 5e13cc8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/common/companies/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', [], setting('company.state')) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), ['model' => 'form.country']) }}

{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/common/companies/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', []) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $company->country, []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $company->country, ['model' => 'form.country']) }}

{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file'], $company->company_logo) }}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/purchases/vendors/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', []) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), ['model' => 'form.country']) }}

{{ Form::fileGroup('logo', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/purchases/vendors/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', []) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $vendor->country, []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $vendor->country, ['model' => 'form.country']) }}

{{ Form::fileGroup('logo', trans_choice('general.logos', 1), '', ['dropzone-class' => 'form-file']) }}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/sales/customers/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', []) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), ['model' => 'form.country']) }}

{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/sales/customers/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

{{ Form::textGroup('state', trans('general.state'), 'city', []) }}

{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $customer->country, []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), $customer->country, ['model' => 'form.country']) }}

{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

Expand Down

0 comments on commit 5e13cc8

Please sign in to comment.