fix: showing success message on deleting
This commit is contained in:
parent
c2db69289f
commit
e1a78f28a5
|
|
@ -170,7 +170,7 @@ class AddressController extends Controller
|
||||||
|
|
||||||
session()->flash('success', trans('admin::app.customers.addresses.success-delete'));
|
session()->flash('success', trans('admin::app.customers.addresses.success-delete'));
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()->route($this->_config['redirect']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -938,6 +938,7 @@ return [
|
||||||
'gender' => 'Gender',
|
'gender' => 'Gender',
|
||||||
'email' => 'Email',
|
'email' => 'Email',
|
||||||
'date_of_birth' => 'Date of Birth',
|
'date_of_birth' => 'Date of Birth',
|
||||||
|
'date_of_birth_placeholder' => 'yyyy-mm-dd',
|
||||||
'phone' => 'Phone',
|
'phone' => 'Phone',
|
||||||
'customer_group' => 'Customer Group',
|
'customer_group' => 'Customer Group',
|
||||||
'save-btn-title' => 'Save Customer',
|
'save-btn-title' => 'Save Customer',
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<div class="control-group" :class="[errors.has('date_of_birth') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has('date_of_birth') ? 'has-error' : '']">
|
||||||
<label for="dob">{{ __('admin::app.customers.customers.date_of_birth') }}</label>
|
<label for="dob">{{ __('admin::app.customers.customers.date_of_birth') }}</label>
|
||||||
<input type="date" class="control" name="date_of_birth" v-validate="" value="{{ old('date_of_birth') }}" data-vv-as=""{{ __('admin::app.customers.customers.date_of_birth') }}"">
|
<input type="date" class="control" name="date_of_birth" v-validate="" value="{{ old('date_of_birth') }}" placeholder="{{ __('admin::app.customers.customers.date_of_birth_placeholder') }}" data-vv-as=""{{ __('admin::app.customers.customers.date_of_birth') }}"">
|
||||||
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue