diff --git a/resources/views/modals/companies/edit.blade.php b/resources/views/modals/companies/edit.blade.php index 9d9a847d2..55374ee8b 100644 --- a/resources/views/modals/companies/edit.blade.php +++ b/resources/views/modals/companies/edit.blade.php @@ -20,10 +20,6 @@ {{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }} -
- -
- {!! Form::hidden('_prefix', 'company') !!} {!! Form::close() !!} diff --git a/resources/views/modals/customers/edit.blade.php b/resources/views/modals/customers/edit.blade.php index 6b93b3f48..60097f7e2 100644 --- a/resources/views/modals/customers/edit.blade.php +++ b/resources/views/modals/customers/edit.blade.php @@ -21,10 +21,6 @@ {{ Form::textareaGroup('address', trans('general.address'), null, $customer->address) }} -
- -
- {{ Form::hidden('type', 'customer') }} {!! Form::hidden('enabled', '1', []) !!} diff --git a/resources/views/modals/vendors/edit.blade.php b/resources/views/modals/vendors/edit.blade.php index 2b65fd4fc..f8447b916 100644 --- a/resources/views/modals/vendors/edit.blade.php +++ b/resources/views/modals/vendors/edit.blade.php @@ -21,10 +21,6 @@ {{ Form::textareaGroup('address', trans('general.address'), null, $vendor->address) }} -
- -
- {{ Form::hidden('type', 'vendor') }} {!! Form::hidden('enabled', '1', []) !!} diff --git a/resources/views/partials/form/textarea_group.blade.php b/resources/views/partials/form/textarea_group.blade.php index fb4424bf7..98aac2ec9 100644 --- a/resources/views/partials/form/textarea_group.blade.php +++ b/resources/views/partials/form/textarea_group.blade.php @@ -14,9 +14,8 @@ {!! Form::textarea($name, $value, array_merge([ 'class' => 'form-control', 'data-name' => $name, - 'data-value' => $value, 'placeholder' => trans('general.form.enter', ['field' => $text]), - 'v-model' => !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name), + '@input' => !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event.target.value' : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name . ' = $event.target.value' : 'form.' . $name . ' = $event.target.value'), ], $attributes)) !!}