diff --git a/resources/views/licenses/view.blade.php b/resources/views/licenses/view.blade.php index 0d8f3a642f..d5c774c5e2 100755 --- a/resources/views/licenses/view.blade.php +++ b/resources/views/licenses/view.blade.php @@ -383,40 +383,49 @@ @can('update', $license) {{ trans('admin/licenses/general.edit') }} - {{ trans('admin/licenses/general.clone') }} + {{ trans('admin/licenses/general.clone') }} @endcan @can('checkout', $license) + @if ($license->availCount()->count() > 0) - - Checkout + + {{ trans('general.checkout') }} - Checkout Remaining to All Users + + {{ trans('admin/licenses/general.bulk.checkout_all.button') }} + + @else - - Checkout - - - Checkout Remaining to All Users + + {{ trans('general.checkout') }} + + + {{ trans('admin/licenses/general.bulk.checkout_all.button') }} + + @endif @endcan @can('checkin', $license) + @if (($license->seats - $license->availCount()->count()) > 0 ) - - Checkin All + + {{ trans('admin/licenses/general.bulk.checkin_all.button') }} @else - - Checkin All - + + + {{ trans('admin/licenses/general.bulk.checkin_all.button') }} + + @endif @endcan @can('delete', $license) - @if ($license->availCount()->count() == 0) + @if ($license->availCount()->count() == $license->seats) {{ trans('general.delete') }} @else {{ trans('general.delete') }} @@ -609,8 +618,8 @@ [ 'modal_name' => 'checkinFromAllModal', 'route' => route('licenses.bulkcheckin', $license->id), - 'title' => trans('general.license_checkin_all_confirm_modal_header'), - 'body' => trans_choice('general.license_checkin_all_confirm_modal_body', 2, ['count' => ($license->seats - $license->availCount()->count())]) + 'title' => trans('general.modal_confirm_generic'), + 'body' => trans_choice('admin/licenses/general.bulk.checkin_all.modal', 2, ['checkedout_seats_count' => $checkedout_seats_count]) ]) @endcan @@ -619,8 +628,8 @@ [ 'modal_name' => 'checkoutFromAllModal', 'route' => route('licenses.bulkcheckout', $license->id), - 'title' => trans('general.license_checkout_all_confirm_modal_header'), - 'body' => trans_choice('general.license_checkout_all_confirm_modal_body', 2, ['count' => $license->availCount()->count()]) + 'title' => trans('general.modal_confirm_generic'), + 'body' => trans_choice('admin/licenses/general.bulk.checkout_all.modal', 2, ['available_seats_count' => $available_seats_count]) ]) @endcan