This commit is contained in:
Andras Bacsai
2023-06-08 11:43:14 +02:00
parent 9767ca47ff
commit 127d42d873
12 changed files with 34 additions and 19 deletions

View File

@@ -3,8 +3,15 @@
<td>{{ $member->name }}</td>
<td>{{ $member->email }}</td>
<td>
{{-- @if (auth()->user()->isAdmin())
<x-forms.button wire:click="makeAdmin">Make admin</x-forms.button>
@else
<x-forms.button disabled>Make admin</x-forms.button>
@endif --}}
@if ($member->id !== auth()->user()->id)
<x-forms.button class="border-none">Remove</x-forms.button>
<x-forms.button wire:click="remove">Remove</x-forms.button>
@else
<x-forms.button disabled>Remove</x-forms.button>
@endif
</td>
</tr>