@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/licenses/general.view') }}
- {{ $license->name }}
@parent
@stop
@section('header_right')
@endsection
{{-- Page content --}}
@section('content')
@can('checkout', $license)
@endcan
{{ trans('general.assigned') }}
@can('checkout', $license)
{{ trans('general.available') }}
@endcan
@can('checkout', $license)
@if (($license->availCount()->count() > 0) && (!$license->isInactive()))
@else
@endif
@endcan
@can('checkin', $license)
@if (($license->seats - $license->availCount()->count()) <= 0 )
@else
@endif
@endcan
@can('checkin', \App\Models\License::class)
@include ('modals.confirm-action',
[
'modal_name' => 'checkinFromAllModal',
'route' => route('licenses.bulkcheckin', $license->id),
'title' => trans('general.modal_confirm_generic'),
'body' => trans_choice('admin/licenses/general.bulk.checkin_all.modal', 2, ['checkedout_seats_count' => $checkedout_seats_count])
])
@endcan
@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
@endsection
@section('moar_scripts')
@can('files', $license)
@include ('modals.upload-file', ['item_type' => 'licenses', 'item_id' => $license->id])
@endcan
@include ('partials.bootstrap-table')
@endsection