Delete modal and permission control edited

This commit is contained in:
Burak Civan 2021-06-30 12:23:37 +03:00
parent 697ac984d9
commit 5ea50925e4
4 changed files with 125 additions and 124 deletions

View File

@ -19,12 +19,11 @@ import BulkAction from './../../plugins/bulk-action';
Vue.use(DashboardPlugin); Vue.use(DashboardPlugin);
const app = new Vue({ const app = new Vue({
el: '#app', el: '#main-body',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('vendor'), form: new Form('vendor'),
@ -32,3 +31,4 @@ const app = new Vue({
} }
} }
}); });

View File

@ -19,7 +19,7 @@ import BulkAction from './../../plugins/bulk-action';
Vue.use(DashboardPlugin); Vue.use(DashboardPlugin);
const app = new Vue({ const app = new Vue({
el: '#app', el: '#main-body',
mixins: [ mixins: [
Global Global
@ -95,3 +95,4 @@ const app = new Vue({
} }
} }
}); });

View File

@ -26,7 +26,7 @@
{{ Form::selectAddNewGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts, setting('default.account'), ['required' => 'required', 'path' => route('modals.accounts.create'), 'change' => 'onChangeAccount']) }} {{ Form::selectAddNewGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts, setting('default.account'), ['required' => 'required', 'path' => route('modals.accounts.create'), 'change' => 'onChangeAccount']) }}
{{ Form::selectRemoteAddNewGroup('contact_id', trans_choice('general.vendors', 1), 'user', $vendors, null, ['path' => route('modals.vendors.create'), 'remote_action' => route('vendors.index')]) }} {{ Form::selectRemoteAddNewGroup('contact_id', trans_choice('general.vendors', 1), 'user', $vendors, old('contact.id', old('contact_id', null)), ['path' => route('modals.vendors.create'), 'remote_action' => route('vendors.index')]) }}
{{ Form::textareaGroup('description', trans('general.description')) }} {{ Form::textareaGroup('description', trans('general.description')) }}

View File

@ -12,7 +12,7 @@
@stack('button_dropdown_start') @stack('button_dropdown_start')
@stack('duplicate_button_start') @stack('duplicate_button_start')
@can('create-purchases-bills') @can('create-purchases-vendors')
<a class="dropdown-item" href="{{ route('vendors.duplicate', $vendor->id) }}"> <a class="dropdown-item" href="{{ route('vendors.duplicate', $vendor->id) }}">
{{ trans('general.duplicate') }} {{ trans('general.duplicate') }}
</a> </a>
@ -21,21 +21,21 @@
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
@stack('invoice_button_start') @stack('bill_button_start')
@can('create-purchases-bills') @can('create-purchases-bills')
<a class="dropdown-item" href="{{ route('vendors.create-bill', $vendor->id) }}"> <a class="dropdown-item" href="{{ route('vendors.create-bill', $vendor->id) }}">
{{ trans('bills.create_bill') }} {{ trans('bills.create_bill') }}
</a> </a>
@endcan @endcan
@stack('invoice_button_end') @stack('bill_button_end')
@stack('revenue_button_start') @stack('payment_button_start')
@can('create-purchases-payments') @can('create-purchases-vendors')
<a class="dropdown-item" href="{{ route('vendors.create-payment', $vendor->id) }}"> <a class="dropdown-item" href="{{ route('vendors.create-payment', $vendor->id) }}">
{{ trans('payments.create_payment') }} {{ trans('payments.create_payment') }}
</a> </a>
@endcan @endcan
@stack('revenue_button_end') @stack('payment_button_end')
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>