2023-09-21 12:45:08 +00:00
|
|
|
<!-- Navbar -->
|
|
|
|
<nav class="main-header navbar navbar-expand navbar-light @guest navbar-laravel @else navbar-white @endguest">
|
|
|
|
<div class="container">
|
|
|
|
@auth
|
2023-09-21 14:20:06 +00:00
|
|
|
<a href="{{action([\App\Http\Controllers\HomeController::class, 'index'])}}" class="navbar-brand">
|
|
|
|
<!-- <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
|
|
|
|
style="opacity: .8"> -->
|
|
|
|
<span class="brand-text font-weight-light">{{ config('app.name', 'Laravel') }}</span>
|
|
|
|
</a>
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
|
|
<a class="nav-link" href="{{ action([\App\Http\Controllers\HomeController::class, 'index']) }}">
|
|
|
|
<i class="fas fa-home"></i>
|
|
|
|
{{ __('messages.home') }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-09-21 12:45:08 +00:00
|
|
|
@endauth
|
|
|
|
|
|
|
|
<!-- Right Side Of Navbar -->
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<!-- Authentication Links -->
|
2024-03-04 04:33:00 +00:00
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a id="superadminDropdown" href="#" data-toggle="dropdown" aria-haspopup="true"
|
|
|
|
aria-expanded="false" class="nav-link dropdown-toggle">
|
|
|
|
{{str(session()->get('locale'))->upper()}}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul aria-labelledby="superadminDropdown" class="dropdown-menu border-0 shadow">
|
|
|
|
<li>
|
|
|
|
<a href="{{route('locale', 'en')}}"
|
|
|
|
class="dropdown-item @if (session()->get('locale') == 'en') active @endif">
|
|
|
|
English
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{route('locale', 'ru')}}"
|
|
|
|
class="dropdown-item @if (session()->get('locale') == 'ru') active @endif">
|
|
|
|
Русский
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{route('locale', 'est')}}"
|
|
|
|
class="dropdown-item @if (session()->get('locale') == 'est') active @endif">
|
|
|
|
Eesti keel
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2023-09-21 12:45:08 +00:00
|
|
|
@guest
|
|
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
|
|
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
|
|
|
|
</li>
|
|
|
|
@if (Route::has('register'))
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<!-- superadmin menu -->
|
2023-09-21 14:20:06 +00:00
|
|
|
@if(auth()->user()->hasRole([\App\Enums\User\RoleEnum::SUPERVISOR->value, \App\Enums\User\RoleEnum::ADMIN->value], 'web'))
|
2023-09-21 12:45:08 +00:00
|
|
|
<li class="nav-item dropdown">
|
2023-09-21 14:20:06 +00:00
|
|
|
<a id="superadminDropdown" href="#" data-toggle="dropdown" aria-haspopup="true"
|
|
|
|
aria-expanded="false" class="nav-link dropdown-toggle">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-universal-access"></i>
|
2023-09-21 14:20:06 +00:00
|
|
|
@lang('messages.' . auth()->user()->roles->first()->name)
|
2023-09-21 12:45:08 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul aria-labelledby="superadminDropdown" class="dropdown-menu border-0 shadow">
|
|
|
|
<li>
|
|
|
|
@if($__enable_saas)
|
2023-09-21 14:20:06 +00:00
|
|
|
<a href="{{action([\App\Http\Controllers\Superadmin\PackageController::class, 'index'])}}"
|
|
|
|
class="dropdown-item">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-money-check"></i>
|
|
|
|
@lang('messages.packages')
|
|
|
|
</a>
|
2023-09-21 14:20:06 +00:00
|
|
|
<a href="{{action([\App\Http\Controllers\Superadmin\PackageSubscriptionsController::class, 'index'])}}"
|
|
|
|
class="dropdown-item">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-sync"></i>
|
|
|
|
@lang('messages.package_subscription')
|
|
|
|
</a>
|
|
|
|
@endif
|
2023-09-21 14:20:06 +00:00
|
|
|
|
|
|
|
<a href="{{action([\App\Http\Controllers\Superadmin\ManageUsersController::class, 'index'])}}"
|
|
|
|
class="dropdown-item">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-users"></i>
|
|
|
|
@lang('messages.users')
|
|
|
|
</a>
|
2023-09-21 14:20:06 +00:00
|
|
|
|
|
|
|
@if(auth()->user()->hasRole(\App\Enums\User\RoleEnum::SUPERVISOR->value))
|
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{action([\App\Http\Controllers\Superadmin\SuperadminSettingsController::class, 'create'])}}">
|
|
|
|
<i class="fa fa-cogs"></i>
|
|
|
|
@lang('messages.system_settings')
|
|
|
|
</a>
|
|
|
|
@endif
|
2023-09-21 12:45:08 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
<!-- /superadmin menu -->
|
2023-09-21 14:20:06 +00:00
|
|
|
|
2023-09-21 12:45:08 +00:00
|
|
|
<li class="nav-item dropdown">
|
2023-09-21 14:20:06 +00:00
|
|
|
<a id="navbarDropdown" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
|
|
|
|
class="nav-link dropdown-toggle">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-user-tie"></i>
|
2023-09-21 14:20:06 +00:00
|
|
|
{{ ucfirst(Auth::user()->name) }}
|
2023-09-21 12:45:08 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul aria-labelledby="navbarDropdown" class="dropdown-menu border-0 shadow">
|
|
|
|
<li>
|
2023-09-21 14:20:06 +00:00
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{action([\App\Http\Controllers\ManageProfileController::class, 'getProfile'])}}">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-user-edit"></i>
|
|
|
|
@lang('messages.profile')
|
|
|
|
</a>
|
|
|
|
@if($__enable_saas)
|
2023-09-21 14:20:06 +00:00
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{action([\App\Http\Controllers\SubscriptionsController::class, 'index'])}}">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-sync"></i>
|
|
|
|
@lang('messages.my_subscription')
|
|
|
|
</a>
|
|
|
|
@endif
|
2023-09-21 14:20:06 +00:00
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{action([\App\Http\Controllers\ManageSettingsController::class, 'getSettings'])}}">
|
2023-09-21 12:45:08 +00:00
|
|
|
<i class="fas fa-user-cog"></i>
|
|
|
|
@lang('messages.my_settings')
|
|
|
|
</a>
|
2023-09-21 14:20:06 +00:00
|
|
|
<a class="dropdown-item"
|
|
|
|
href="{{ route('logout') }}"
|
|
|
|
onclick="event.preventDefault();
|
2023-09-21 12:45:08 +00:00
|
|
|
document.getElementById('logout-form').submit();">
|
|
|
|
<i class="fas fa-sign-out-alt"></i>
|
|
|
|
{{ __('Logout') }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
@csrf
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@endguest
|
|
|
|
</ul>
|
|
|
|
|
2023-09-21 14:20:06 +00:00
|
|
|
<!-- Left navbar links -->
|
2023-09-21 12:45:08 +00:00
|
|
|
<!-- <ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
</li>
|
|
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
|
|
<a href="index3.html" class="nav-link">Home</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
|
|
<a href="#" class="nav-link">Contact</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
Help
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
|
<a class="dropdown-item" href="#">FAQ</a>
|
|
|
|
<a class="dropdown-item" href="#">Support</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item" href="#">Contact</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul> -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
2024-03-04 04:33:00 +00:00
|
|
|
<!-- /.navbar -->
|