document: hide edit button in accordion if missing update permission
This commit is contained in:
parent
c34de72335
commit
a11f679f1e
@ -11,9 +11,13 @@
|
|||||||
|
|
||||||
<x-slot name="body">
|
<x-slot name="body">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<x-link href="{{ route($editRoute, $document->id) }}" id="show-slider-actions-edit-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
|
@if (! $hideEdit)
|
||||||
{{ trans('general.edit') }}
|
@can($permissionUpdate)
|
||||||
</x-link>
|
<x-link href="{{ route($editRoute, $document->id) }}" id="show-slider-actions-edit-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
|
||||||
|
{{ trans('general.edit') }}
|
||||||
|
</x-link>
|
||||||
|
@endcan
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
</x-show.accordion>
|
</x-show.accordion>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user