-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathteam-members.blade.php
More file actions
53 lines (46 loc) · 1.77 KB
/
Copy pathteam-members.blade.php
File metadata and controls
53 lines (46 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<section>
<header>
<h2 class="text-lg font-medium text-gray-900">
{{ __('Team members') }}
</h2>
<p class="mt-1 text-sm text-gray-600">
These are the members of your team
</p>
</header>
<div class="mt-6">
<ul class="divide-y divide-gray-100">
@foreach($team->members as $member)
<x-team-member-item :team="$team" :member="$member" :roles="$roles" />
@endforeach
</ul>
@can('inviteToTeam', $team)
<ul class="divide-y divide-gray-100">
@foreach($team->invites as $invite)
<x-team-invite-item :invite="$invite" />
@endforeach
</ul>
@endcan
</div>
@can('inviteToTeam', $team)
<form method="post" action="{{ route('team.invites.store', $team) }}" class="mt-6 space-y-6">
@csrf
<div>
<x-input-label for="email" :value="__('Email')" />
<x-text-input id="email" name="email" type="email" class="mt-1 block w-full" :value="old('email')" required />
<x-input-error class="mt-2" :messages="$errors->get('email')" />
</div>
<div class="flex items-center gap-4">
<x-primary-button>{{ __('Invite') }}</x-primary-button>
@if (session('status') === 'team-invited')
<p
x-data="{ show: true }"
x-show="show"
x-transition
x-init="setTimeout(() => show = false, 2000)"
class="text-sm text-gray-600"
>{{ __('Invite sent.') }}</p>
@endif
</div>
</form>
@endcan
</section>