51 lines
1.8 KiB
PHP
Raw Normal View History

2023-06-02 12:34:45 +02:00
<x-layout>
<x-team.navbar :team="session('currentTeam')" />
<h2>Members</h2>
<div class="overflow-x-auto">
<table class="table">
<thead>
2023-06-12 12:00:01 +02:00
<tr class="font-bold text-white uppercase border-coolgray-200">
2023-06-02 12:34:45 +02:00
<th>Name</th>
<th>Email</th>
2023-06-09 15:55:21 +02:00
<th>Role</th>
2023-06-02 12:34:45 +02:00
<th>Actions</th>
</tr>
</thead>
<tbody>
2023-06-09 15:55:21 +02:00
@foreach (auth()->user()->currentTeam()->members->sortBy('name') as $member)
2023-06-02 12:34:45 +02:00
<livewire:team.member :member="$member" :wire:key="$member->id" />
@endforeach
</tbody>
</table>
</div>
2023-06-09 15:55:21 +02:00
@if (auth()->user()->isAdmin())
@if (!$transactional_emails_active)
<div class="py-4">
<h3 class="pb-4">Invite a new member</h3>
<form class="flex items-center gap-2">
<x-forms.input type="email" name="email" placeholder="Email" />
<x-forms.button>Invite</x-forms.button>
</form>
</div>
@else
<div class="py-4">
2023-06-12 12:21:48 +02:00
@if (!is_transactional_emails_active())
<h3>Invite a new member</h3>
<div class="pb-4 text-xs text-warning">You need to configure SMTP settings before you can invite a
new
member
via
email.
</div>
@else
<h3 class="pb-4">Invite a new member</h3>
@endif
2023-06-12 12:00:01 +02:00
<livewire:team.invite-link />
2023-06-09 15:55:21 +02:00
</div>
2023-06-12 12:00:01 +02:00
<livewire:team.invitations :invitations="$invitations" />
2023-06-09 15:55:21 +02:00
@endif
@endif
2023-06-02 12:34:45 +02:00
</x-layout>