From 9a18742828580219c82adaaae866017d04f027c5 Mon Sep 17 00:00:00 2001 From: inmanturbo <47095624+inmanturbo@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:31:53 -0400 Subject: [PATCH] Add files via upload --- .../one-app-switchable-team.blade.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 stubs/navigation/resources/views/livewire/one-app-switchable-team.blade.php diff --git a/stubs/navigation/resources/views/livewire/one-app-switchable-team.blade.php b/stubs/navigation/resources/views/livewire/one-app-switchable-team.blade.php new file mode 100644 index 0000000..5556f50 --- /dev/null +++ b/stubs/navigation/resources/views/livewire/one-app-switchable-team.blade.php @@ -0,0 +1,38 @@ + null]); + +mount(fn($team) => $this->team = $team); + +$switchTeam = function() { + if (! auth()->user()->switchTeam($this->team)) { + abort(403); + } + + $this->js('window.location.reload()'); +}; + +?> + +
+
+ + +
+ @if (Auth::user()->isCurrentTeam($this->team)) + + + + @endif + +
{{ $this->team->name }}
+
+
+
+
+ +