This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/resources/views/vendor/spark/nav/blade/teams.blade.php

29 lines
968 B
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<li class="divider"></li>
<!-- Teams -->
<li class="dropdown-header">{{ ucfirst(str_plural(Spark::teamString())) }}</li>
<!-- Create Team -->
@if (Spark::createsAdditionalTeams())
<li>
<a href="/settings#/{{ str_plural(Spark::teamString()) }}">
<i class="fa fa-fw fa-btn fa-plus"></i>Create {{ ucfirst(Spark::teamString()) }}
</a>
</li>
@endif
<!-- Switch Current Team -->
@if (Spark::showsTeamSwitcher())
@foreach (Auth::user()->teams as $team)
<li>
<a href="/{{ str_plural(Spark::teamString()) }}/{{ $team->id }}/switch">
@if (Auth::user()->current_team_id === $team->id)
<i class="fa fa-fw fa-btn fa-check text-success"></i>{{ $team->name }}
@else
<img src="{{ $team->photo_url }}" class="spark-team-photo-xs"><i class="fa fa-btn"></i>{{ $team->name }}
@endif
</a>
</li>
@endforeach
@endif