This commit is contained in:
Benjamin Takats
2023-01-15 21:26:37 +01:00
parent 8bda308790
commit b18da8b3a1
2 changed files with 17 additions and 0 deletions

View File

@@ -147,6 +147,14 @@
<button x-bind="focusableWhenVisible" class="px-4 py-2 text-sm">
#{{ $loop->iteration }} Bild
</button>
@if(auth()->user()->hasRole('super-admin'))
<x-button wire:click="deletePhoto({{ $image->id }})" xs
x-bind="focusableWhenVisible"
class="px-4 py-2 text-sm">
Löschen
</x-button>
@endif
</li>
@endforeach