Skip to content

Instantly share code, notes, and snippets.

@victorhugorch
Created March 31, 2018 18:17
Show Gist options
  • Save victorhugorch/8b9aedbee36600841e8614ea1a67bcf1 to your computer and use it in GitHub Desktop.
Save victorhugorch/8b9aedbee36600841e8614ea1a67bcf1 to your computer and use it in GitHub Desktop.
<li class="{{ Route::currentRouteName() == 'dashboard.index' ? 'active ' : ''}}">
<a href="{{ route('dashboard.index') }}">
<i class="fa fa-fw fa-dashboard"></i>
<span>Dashboard</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'admins' ? 'active ' : ''}}">
<a href="{{ route('admins.index') }}">
<i class="fa fa-fw fa-user-secret"></i>
<span>Admins</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'news' ? 'active ' : ''}}">
<a href="{{ route('news.index') }}">
<i class="fa fa-fw fa-newspaper-o"></i>
<span>Notícias</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'contests' ? 'active ' : ''}}">
<a href="{{ route('contests.index') }}">
<i class="fa fa-fw fa-trophy"></i>
<span>Concursos</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'highlights' ? 'active ' : ''}}">
<a href="{{ route('highlights.index') }}">
<i class="fa fa-fw fa-eye"></i>
<span>Destaques</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'products' ? 'active ' : ''}}">
<a href="{{ route('products.index') }}">
<i class="fa fa-fw fa-product-hunt"></i>
<span>Produtos</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'reports' ? 'active ' : ''}}">
<a href="{{ route('reports.index') }}">
<i class="fa fa-fw fa-area-chart"></i>
<span>Relatórios</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'categories' ? 'active ' : ''}}">
<a href="{{ route('categories.index') }}">
<i class="fa fa-fw fa-tags"></i>
<span>Categorias</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'institutions' ? 'active ' : ''}}">
<a href="{{ route('institutions.index') }}">
<i class="fa fa-fw fa-institution"></i>
<span>Instituições</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'organizators' ? 'active ' : ''}}">
<a href="{{ route('organizators.index') }}">
<i class="fa fa-fw fa-building"></i>
<span>Organizadores</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'disciplines' ? 'active ' : ''}}">
<a href="{{ route('disciplines.index') }}">
<i class="fa fa-fw fa-book"></i>
<span>Disciplinas</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'schoolings' ? 'active ' : ''}}">
<a href="{{ route('schoolings.index') }}">
<i class="fa fa-fw fa-graduation-cap"></i>
<span>Escolaridades</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'situations' ? 'active ' : ''}}">
<a href="{{ route('situations.index') }}">
<i class="fa fa-fw fa-hourglass-start"></i>
<span>Situações</span>
</a>
</li>
<li class="{{ Request::segment(1) == 'synonyms' ? 'active ' : ''}}">
<a href="{{ route('synonyms.index') }}">
<i class="fa fa-fw fa-cc"></i>
<span>Sinônimos</span>
</a>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment