2023-06-02 10:34:45 +00:00
|
|
|
<x-layout>
|
|
|
|
<x-team.navbar :team="session('currentTeam')" />
|
2023-06-16 13:01:58 +00:00
|
|
|
<livewire:team.form />
|
|
|
|
<h3>Members</h3>
|
|
|
|
<div class="pt-4 overflow-hidden">
|
2023-06-12 19:12:07 +00:00
|
|
|
<table>
|
2023-06-02 10:34:45 +00:00
|
|
|
<thead>
|
2023-06-12 19:12:07 +00:00
|
|
|
<tr>
|
2023-06-02 10:34:45 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Email</th>
|
2023-06-09 13:55:21 +00:00
|
|
|
<th>Role</th>
|
2023-06-02 10:34:45 +00:00
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-06-09 13:55:21 +00:00
|
|
|
@foreach (auth()->user()->currentTeam()->members->sortBy('name') as $member)
|
2023-06-02 10:34:45 +00:00
|
|
|
<livewire:team.member :member="$member" :wire:key="$member->id" />
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-06-09 13:55:21 +00:00
|
|
|
@if (auth()->user()->isAdmin())
|
2023-06-12 18:54:29 +00:00
|
|
|
<div class="py-4">
|
|
|
|
@if (is_transactional_emails_active())
|
2023-06-09 13:55:21 +00:00
|
|
|
<h3 class="pb-4">Invite a new member</h3>
|
2023-06-12 18:54:29 +00:00
|
|
|
@else
|
|
|
|
<h3>Invite a new member</h3>
|
2023-06-13 08:51:58 +00:00
|
|
|
@if (auth()->user()->isInstanceAdmin())
|
|
|
|
<div class="pb-4 text-xs text-warning">You need to configure <a href="/settings/emails"
|
|
|
|
class="underline text-warning">Transactional Emails</a>
|
|
|
|
before
|
|
|
|
you can invite a
|
|
|
|
new
|
|
|
|
member
|
|
|
|
via
|
|
|
|
email.
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-06-12 18:54:29 +00:00
|
|
|
@endif
|
|
|
|
<livewire:team.invite-link />
|
|
|
|
</div>
|
|
|
|
<livewire:team.invitations :invitations="$invitations" />
|
2023-06-09 13:55:21 +00:00
|
|
|
@endif
|
2023-06-16 13:56:25 +00:00
|
|
|
|
|
|
|
<livewire:team.delete />
|
2023-06-02 10:34:45 +00:00
|
|
|
</x-layout>
|