lasthourcloud/resources/views/livewire/switch-team.blade.php
2023-05-16 14:38:11 +02:00

11 lines
361 B
PHP

<div class="pt-4">
<h3>Other Teams</h3>
<div class="flex flex-col gap-2">
@foreach (auth()->user()->otherTeams() as $team)
<x-inputs.button isBold wire:key="{{ $team->id }}" wire:click="switch_to('{{ $team->id }}')">Switch
to:
{{ $team->name }}</x-inputs.button>
@endforeach
</div>
</div>