Skip to content

A free open source IT asset/license management system

Fixed checkout to all modal

snipe6ee5aa3e12fb
diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php
index 0875c39c65..fbf710a670 100755
--- a/resources/views/licenses/view.blade.php
+++ b/resources/views/licenses/view.blade.php
@@ -204,6 +204,15 @@
</x-page-column>
</x-container>
+@can('checkout', \App\Models\License::class)
+ @include ('modals.confirm-action',
+ [
+ 'modal_name' => 'checkoutFromAllModal',
+ 'route' => route('licenses.bulkcheckout', $license->id),
+ 'title' => trans('general.modal_confirm_generic'),
+ 'body' => trans_choice('admin/licenses/general.bulk.checkout_all.modal', 2, ['available_seats_count' => $available_seats_count])
+ ])
+@endcan
@can('update', \App\Models\License::class)