This commit is contained in:
denisdulici
2020-01-24 16:33:00 +03:00
parent b13f6e2310
commit 1fa2848f89
4 changed files with 371 additions and 370 deletions

View File

@@ -39,7 +39,7 @@ const app = new Vue({
this.form.loading = true;
axios.post('offline-payments/settings/get', {
axios.post('settings/get', {
code: code
})
.then(response => {
@@ -48,7 +48,7 @@ const app = new Vue({
this.form.customer = response.data.data.customer;
this.form.order = response.data.data.order;
this.form.description = response.data.data.description;
this.form.update = response.data.data.update;
this.form.update_code = response.data.data.update_code;
this.form.loading = false;
})
.catch(error => {
@@ -76,7 +76,7 @@ const app = new Vue({
onDelete() {
axios({
method: 'DELETE',
url: 'offline-payments/settings/delete',
url: 'settings/delete',
data: {
code: this.confirm.code
}

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@
'files' => true,
'role' => 'form',
'class' => 'form-loading-button',
'novalidate' => true
'novalidate' => true,
]) !!}
<div class="card-body">
@@ -33,7 +33,7 @@
{{ Form::textareaGroup('description', trans('general.description')) }}
{!! Form::hidden('update', null) !!}
{!! Form::hidden('update_code', null) !!}
</div>
</div>
@@ -65,8 +65,8 @@
</tr>
</thead>
<tbody>
@if($items)
@foreach($items as $item)
@if($methods)
@foreach($methods as $item)
<tr class="row align-items-center border-top-1" id="method-{{ $item->code }}">
<td class="col-xs-6 col-sm-4 col-md-4 col-lg-3">{{ $item->name }}</td>
<td class="col-sm-4 col-md-4 col-lg-4 hidden-sm">{{ $item->code }}</td>