lasthourcloud/resources/views/livewire/switch-team.blade.php
2023-05-03 14:09:10 +02:00

7 lines
235 B
PHP

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