2023-07-13 20:03:27 +00:00
|
|
|
<x-layout>
|
2023-08-11 15:31:53 +00:00
|
|
|
<x-team.navbar :team="auth()
|
|
|
|
->user()
|
|
|
|
->currentTeam()" />
|
2023-08-07 13:31:42 +00:00
|
|
|
<h2>Members</h2>
|
2023-07-13 20:03:27 +00:00
|
|
|
<div class="pt-4 overflow-hidden">
|
|
|
|
<table>
|
|
|
|
<thead>
|
2023-08-11 15:31:53 +00:00
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>Role</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
2023-07-13 20:03:27 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-08-11 15:31:53 +00:00
|
|
|
@foreach (auth()->user()->currentTeam()->members->sortBy('name') as $member)
|
|
|
|
<livewire:team.member :member="$member" :wire:key="$member->id" />
|
|
|
|
@endforeach
|
2023-07-13 20:03:27 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
@if (auth()->user()->isAdminFromSession())
|
|
|
|
<div class="py-4">
|
|
|
|
@if (is_transactional_emails_active())
|
|
|
|
<h3 class="pb-4">Invite a new member</h3>
|
|
|
|
@else
|
|
|
|
<h3>Invite a new member</h3>
|
|
|
|
@if (auth()->user()->isInstanceAdmin())
|
|
|
|
<div class="pb-4 text-xs text-warning">You need to configure <a href="/settings/emails"
|
2023-08-11 15:31:53 +00:00
|
|
|
class="underline text-warning">Transactional
|
2023-08-08 09:51:36 +00:00
|
|
|
Emails</a>
|
2023-07-13 20:03:27 +00:00
|
|
|
before
|
|
|
|
you can invite a
|
|
|
|
new
|
|
|
|
member
|
|
|
|
via
|
|
|
|
email.
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@endif
|
2023-08-11 15:31:53 +00:00
|
|
|
<livewire:team.invite-link />
|
2023-07-13 20:03:27 +00:00
|
|
|
</div>
|
2023-08-11 15:31:53 +00:00
|
|
|
<livewire:team.invitations :invitations="$invitations" />
|
2023-07-13 20:03:27 +00:00
|
|
|
@endif
|
|
|
|
</x-layout>
|