{{-- All tenant resolution happens inside Livewire\Settings\Team::resolveCurrentAccount(). --}}
@include('partials.settings-heading') {{ __('Team settings') }}
{{-- Invite a teammate card. Owners/admins only. --}} @if ($this->canManage)
{{ __('Invite a teammate') }} {{ __('They\'ll receive an email with a link to join this workspace.') }}
@foreach ($this->assignableRoles as $role) {{ ucfirst($role) }} @endforeach {{ __('Send invitation') }}
@endif {{-- Members list --}}
{{ __('Members') }} {{ __('People who currently have access to this workspace.') }}
@foreach ($this->members as $member) @endforeach
{{ __('Name') }} {{ __('Email') }} {{ __('Role') }} {{ __('Joined') }}
{{ $member->name }} @if ($member->id === auth()->id()) ({{ __('you') }}) @endif {{ $member->email }} @if ($this->canManage && $member->pivot->role !== \App\Models\Account::ROLE_OWNER) {{-- Role-change dropdown for non-owners. Owners are a fixed badge — ownership transfer is a separate future flow. Each menu item hard-codes the target role into wire:click, so the new role is sent to Livewire as an unambiguous string — no client-side event-value extraction, which is unreliable across custom Flux inputs. --}} {{ ucfirst($member->pivot->role) }} @foreach ($this->assignableRoles as $role) @if ($role !== $member->pivot->role) {{ __('Change to :role', ['role' => ucfirst($role)]) }} @endif @endforeach @else {{ ucfirst($member->pivot->role) }} @endif @if ($member->pivot->joined_at) {{ \Illuminate\Support\Carbon::parse($member->pivot->joined_at)->format('M j, Y') }} @else — @endif
{{-- Pending invitations: owners/admins only --}} @if ($this->canManage)
{{ __('Pending invitations') }} {{ __('Invitations that haven\'t been accepted yet.') }}
@forelse ($this->pendingInvitations as $invitation) @empty @endforelse
{{ __('Email') }} {{ __('Role') }} {{ __('Expires') }} {{ __('Actions') }}
{{ $invitation->email }} {{ ucfirst($invitation->role) }} {{ $invitation->expires_at?->diffForHumans() ?? __('never') }} {{ __('Cancel') }}
{{ __('No pending invitations.') }}
@endif