Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 47 additions & 19 deletions resources/views/layouts/navbars/auth/sidenav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ class="collapse navbar-collapse w-auto"
<ul class="navbar-nav">
<li class="nav-item">
<a
class="nav-link {{ Route::currentRouteName() == "page" ? "active" : "" }}"
href="{{ Route::currentRouteName() != "page" ? route("home") : "#" }}"
class="nav-link {{ Route::currentRouteName() == "home" ? "active" : "" }}"
href="{{ Route::currentRouteName() != "home" ? route("home") : "#" }}"
>
<div
class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-items-center justify-content-center"
>
<i
class="{{ Route::currentRouteName() == "page" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-tv-2"
class="{{ Route::currentRouteName() == "home" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-tv-2"
></i>
</div>
<span class="nav-link-text ms-1">{{ __('nav/nav.home') }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/nav.home") }}
</span>
</a>
</li>
<li class="nav-item">
Expand All @@ -55,7 +57,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "projects.index" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-single-copy-04"
></i>
</div>
<span class="nav-link-text ms-1">{{ __('nav/nav.my_projects') }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/nav.my_projects") }}
</span>
</a>
</li>
<li class="nav-item">
Expand All @@ -70,7 +74,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "profile" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-single-02"
></i>
</div>
<span class="nav-link-text ms-1">{{ __('nav/nav.profile') }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/nav.profile") }}
</span>
</a>
</li>

Expand All @@ -86,7 +92,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "about" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-bulb-61"
></i>
</div>
<span class="nav-link-text ms-1">{{ __('nav/nav.about') }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/nav.about") }}
</span>
</a>
</li>
<li class="nav-item">
Expand All @@ -101,7 +109,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "help" ? "text-primary" : "text-dark" }} text-sm opacity-10 ni ni-satisfied"
></i>
</div>
<span class="nav-link-text ms-1">{{ __('nav/nav.help') }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/nav.help") }}
</span>
</a>
</li>

Expand All @@ -117,7 +127,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
>
<i class="text-dark text-sm opacity-10 fas fa-book"></i>
</div>
<span class="nav-link-text ms-1">{!! __('nav/nav.documentation') !!}</span>
<span class="nav-link-text ms-1">
{!! __("nav/nav.documentation") !!}
</span>
</a>
</li>

Expand All @@ -133,13 +145,19 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "terms" ? "text-primary" : "text-dark" }} text-sm opacity-10 fas fa-file-contract"
></i>
</div>
<span class="nav-link-text ms-1">{!! __('nav/nav.terms_and_conditions') !!}</span>
<span class="nav-link-text ms-1">
{!! __("nav/nav.terms_and_conditions") !!}
</span>
</a>
</li>

@if (Auth::user()->role == "SUPER_USER")
<br/>
<h6 class="ps-4 ms-2 text-uppercase text-xl font-weight-bolder opacity-4">:: {{ __("nav/side.titulo-adm") }} </h6>
<br />
<h6
class="ps-4 ms-2 text-uppercase text-xl font-weight-bolder opacity-4"
>
:: {{ __("nav/side.titulo-adm") }}
</h6>
<li class="nav-item">
<a
class="nav-link {{ Route::currentRouteName() == "database-manager" ? "active" : "" }}"
Expand All @@ -152,7 +170,9 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "database-manger" ? "text-primary" : "text-dark" }} text-sm opacity-10 fas fa-users-cog"
></i>
</div>
<span class="nav-link-text ms-1">{{ __("nav/side.database_manager") }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/side.database_manager") }}
</span>
</a>
</li>

Expand All @@ -168,21 +188,29 @@ class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-it
class="{{ Route::currentRouteName() == "database-manger" ? "text-primary" : "text-dark" }} text-sm opacity-10 fas fa-users-cog"
></i>
</div>
<span class="nav-link-text ms-1">{{ __("nav/side.user_manager") }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/side.user_manager") }}
</span>
</a>
</li>
<li class="nav-item">
<a
class="nav-link {{ Route::currentRouteName() == "levels.index" ? "active" : "" }}"
href="{{ Route::currentRouteName() != "levels.index" ? route("levels.index") : "#" }}">
<div class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-items-center justify-content-center">
<i class="{{ Route::currentRouteName() == "levels.index" ? "text-primary" : "text-dark" }} text-sm opacity-10 fas fa-layer-group"></i>
href="{{ Route::currentRouteName() != "levels.index" ? route("levels.index") : "#" }}"
>
<div
class="icon icon-shape icon-sm border-radius-md text-center me-2 d-flex align-items-center justify-content-center"
>
<i
class="{{ Route::currentRouteName() == "levels.index" ? "text-primary" : "text-dark" }} text-sm opacity-10 fas fa-layer-group"
></i>
</div>
<span class="nav-link-text ms-1">{{ __("nav/side.levels_manager") }}</span>
<span class="nav-link-text ms-1">
{{ __("nav/side.levels_manager") }}
</span>
</a>
</li>
@endif

</ul>
</div>
</aside>