File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
resources/views/layouts/partials Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- Teams Dropdown -->
2
+ @if (class_exists (' \Laravel\Jetstream\Jetstream' ) && Laravel \Jetstream \Jetstream:: hasTeamFeatures () )
3
+ <li class =" nav-item dropdown" >
4
+ <a id =" navbarDropdown" class =" nav-link dropdown-toggle" href =" #" role =" button" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" v-pre >
5
+ {{ Auth:: user ()-> currentTeam -> name } } <span class =" caret" ></span >
6
+ </a >
7
+
8
+ <div class =" dropdown-menu dropdown-menu-right" aria-labelledby =" navbarDropdown" >
9
+ <!-- Team Management -->
10
+ <div class =" block px-4 py-2 text-xs text-gray-400" >
11
+ {{ __ (' Manage Team' ) } }
12
+ </div >
13
+
14
+ <!-- Team Settings -->
15
+ <x-dropdown-link href =" {{ route (' teams.show' , Auth:: user ()-> currentTeam -> id ) } }" >
16
+ {{ __ (' Team Settings' ) } }
17
+ </x-dropdown-link >
18
+
19
+ @can (' create' , Laravel \Jetstream \Jetstream:: newTeamModel () )
20
+ <x-dropdown-link href =" {{ route (' teams.create' ) } }" >
21
+ {{ __ (' Create New Team' ) } }
22
+ </x-dropdown-link >
23
+ @endcan
24
+
25
+ <!-- Team Switcher -->
26
+ @if (Auth:: user ()-> allTeams ()-> count () > 1 )
27
+ <div class =" border-t border-gray-200" ></div >
28
+
29
+ <div class =" block px-4 py-2 text-xs text-gray-400" >
30
+ {{ __ (' Switch Teams' ) } }
31
+ </div >
32
+
33
+ @foreach (Auth:: user ()-> allTeams () as $team )
34
+ <x-switchable-team :team =" $team" />
35
+ @endforeach
36
+ @endif
37
+ </div >
38
+ </li >
39
+ @endif
40
+
1
41
<li class =" nav-item dropdown" >
2
42
<a id =" navbarDropdown" class =" nav-link dropdown-toggle" href =" #" role =" button" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" v-pre >
3
43
{{ Auth:: user ()-> name } } <span class =" caret" ></span >
You can’t perform that action at this time.
0 commit comments