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

11 lines
354 B
PHP
Raw Normal View History

2023-05-16 12:38:11 +00:00
<div class="pt-4">
<h3>Other Teams</h3>
<div class="flex flex-col gap-2">
@foreach (auth()->user()->otherTeams() as $team)
2023-05-18 11:26:35 +00:00
<x-inputs.button wire:key="{{ $team->id }}" wire:click="switch_to('{{ $team->id }}')">Switch
2023-05-16 12:38:11 +00:00
to:
{{ $team->name }}</x-inputs.button>
@endforeach
</div>
</div>