changed bulk actions show based on permissions
This commit is contained in:
@ -49,18 +49,14 @@
|
||||
@foreach($items as $item)
|
||||
<tr class="row align-items-center border-top-1">
|
||||
<td class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">
|
||||
@if (user()->can('update-common-items'))
|
||||
{{ Form::bulkActionGroup($item->id, $item->name) }}
|
||||
@else
|
||||
{{ Form::bulkActionGroup($item->id, $item->name, ['disabled' => 'disabled']) }}
|
||||
@endif
|
||||
{{ Form::bulkActionGroup($item->id, $item->name) }}
|
||||
</td>
|
||||
<td class="col-xs-4 col-sm-4 col-md-4 col-lg-3 col-xl-3 py-2">
|
||||
<img src="{{ $item->picture ? Storage::url($item->picture->id) : asset('public/img/akaunting-logo-green.svg') }}" class="avatar image-style p-1 mr-3 item-img hidden-md col-aka" alt="{{ $item->name }}">
|
||||
<a href="{{ route('items.edit', $item->id) }}">{{ $item->name }}</a>
|
||||
</td>
|
||||
<td class="col-lg-1 col-xl-2 d-none d-lg-block">
|
||||
{{ $item->category ? $item->category->name : trans('general.na') }}
|
||||
{{ $item->category->name }}
|
||||
</td>
|
||||
<td class="col-md-3 col-lg-3 col-xl-2 text-right d-none d-md-block">
|
||||
{{ money($item->sale_price, setting('default.currency'), true) }}
|
||||
|
Reference in New Issue
Block a user