fix permissions stuff + optional parameter

This commit is contained in:
slong753 2023-03-29 19:53:04 -05:00
parent d033733fc0
commit d5d50264c3

View file

@ -13,8 +13,10 @@
</span>
</label>
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="min-width: 350px;">
@if($status == 'Deleted')
@if($status ?? '' == 'Deleted')
@can('delete', \App\Models\Asset::class)
<option value="restore">{{trans('button.restore')}}</option>
@endcan
@else
@can('update', \App\Models\Asset::class)
<option value="edit">{{ trans('button.edit') }}</option>