lasthourcloud/resources/views/livewire/switch-team.blade.php

7 lines
217 B
PHP
Raw Normal View History

<div>
@foreach (auth()->user()->otherTeams() as $team)
<button wire:key="{{ $team->id }}" wire:click="switch_to('{{ $team->id }}')">Switch to:
{{ $team->name }}</button>
@endforeach
</div>