2023-06-12 10:00:01 +00:00
|
|
|
<div>
|
|
|
|
@if ($invitations->count() > 0)
|
|
|
|
<h4 class="pb-2">Pending Invitations</h4>
|
|
|
|
<div class="overflow-x-auto">
|
2023-06-12 19:12:07 +00:00
|
|
|
<table>
|
2023-06-12 10:00:01 +00:00
|
|
|
<thead>
|
2023-06-12 19:12:07 +00:00
|
|
|
<tr>
|
2023-06-12 10:00:01 +00:00
|
|
|
<th>Email</th>
|
|
|
|
<th>Via</th>
|
|
|
|
<th>Role</th>
|
|
|
|
<th>Invitation Link</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody x-data>
|
|
|
|
@foreach ($invitations as $invite)
|
2023-06-12 19:12:07 +00:00
|
|
|
<tr>
|
2023-06-12 10:00:01 +00:00
|
|
|
<td>{{ $invite->email }}</td>
|
|
|
|
<td>{{ $invite->via }}</td>
|
|
|
|
<td>{{ $invite->role }}</td>
|
|
|
|
<td x-on:click="copyToClipboard('{{ $invite->link }}')">
|
|
|
|
<x-forms.button>Copy Invitation Link</x-forms.button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<x-forms.button wire:click.prevent='deleteInvitation({{ $invite->id }})'>Revoke
|
|
|
|
Invitation</x-forms.button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
</div>
|