2019-09-17 03:17:51 +08:00
|
|
|
<div class="nav-tabs-navigation">
|
|
|
|
<div class="nav-tabs-wrapper">
|
2019-10-30 01:03:04 +08:00
|
|
|
<ul class="navbar-nav align-middle">
|
2019-09-17 03:17:51 +08:00
|
|
|
@if(Auth::check())
|
2019-10-30 01:03:04 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('frontend.dashboard.index') }}">
|
|
|
|
<i class="fas fa-tachometer-alt"></i>
|
|
|
|
<p>@lang('common.dashboard')</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2019-09-17 03:17:51 +08:00
|
|
|
@endif
|
2018-01-20 06:07:31 +08:00
|
|
|
|
2019-09-17 03:17:51 +08:00
|
|
|
<li class="nav-item">
|
2019-10-30 01:03:04 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.livemap.index') }}">
|
|
|
|
<i class="fas fa-globe"></i>
|
|
|
|
<p>@lang('common.livemap')</p>
|
|
|
|
</a>
|
2019-09-17 03:17:51 +08:00
|
|
|
</li>
|
2018-01-20 06:07:31 +08:00
|
|
|
|
2019-09-17 03:17:51 +08:00
|
|
|
<li class="nav-item">
|
2019-10-30 01:03:04 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.pilots.index') }}">
|
|
|
|
<i class="fas fa-users"></i>
|
|
|
|
<p>{{ trans_choice('common.pilot', 2) }}</p>
|
|
|
|
</a>
|
2019-09-17 03:17:51 +08:00
|
|
|
</li>
|
2018-01-20 06:07:31 +08:00
|
|
|
|
2019-09-17 03:17:51 +08:00
|
|
|
{{-- Show the module links that don't require being logged in --}}
|
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
|
2019-10-30 01:03:04 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url($link['url']) }}">
|
|
|
|
<i class="{{ $link['icon'] }}"></i>
|
|
|
|
<p>{{ ($link['title']) }}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2019-09-17 03:17:51 +08:00
|
|
|
@endforeach
|
2018-02-05 01:05:44 +08:00
|
|
|
|
2019-09-17 03:17:51 +08:00
|
|
|
@if(!Auth::check())
|
2019-10-30 01:03:04 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url('/login') }}">
|
|
|
|
<i class="fas fa-sign-in-alt"></i>
|
|
|
|
<p>@lang('common.login')</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url('/register') }}">
|
|
|
|
<i class="far fa-id-card"></i>
|
|
|
|
<p>@lang('common.register')</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-01-20 06:07:31 +08:00
|
|
|
|
2019-09-17 03:17:51 +08:00
|
|
|
@else
|
2019-10-30 01:03:04 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('frontend.flights.index') }}">
|
|
|
|
<i class="fab fa-avianex"></i>
|
|
|
|
<p>{{ trans_choice('common.flight', 2) }}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('frontend.pireps.index') }}">
|
|
|
|
<i class="fas fa-cloud-upload-alt"></i>
|
|
|
|
<p>{{ trans_choice('common.pirep', 2) }}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('frontend.downloads.index') }}">
|
|
|
|
<i class="fas fa-download"></i>
|
|
|
|
<p>{{ trans_choice('common.download', 2) }}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
{{-- Show the module links for being logged in --}}
|
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=true) as &$link)
|
2019-09-17 03:17:51 +08:00
|
|
|
<li class="nav-item">
|
2019-10-30 01:03:04 +08:00
|
|
|
<a class="nav-link" href="{{ url($link['url']) }}">
|
|
|
|
<i class="{{ $link['icon'] }}"></i>
|
|
|
|
<p>{{ ($link['title']) }}</p>
|
|
|
|
</a>
|
2019-09-17 03:17:51 +08:00
|
|
|
</li>
|
2019-10-30 01:03:04 +08:00
|
|
|
@endforeach
|
2018-01-20 06:07:31 +08:00
|
|
|
|
2019-10-30 01:03:04 +08:00
|
|
|
<li class="nav-item dropdown ">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
|
|
|
|
data-toggle="dropdown" data-boundary="viewport" aria-haspopup="true" aria-expanded="false">
|
|
|
|
@if (Auth::user()->avatar == null)
|
|
|
|
<img src="{{ Auth::user()->gravatar(38) }}" style="height: 38px; width: 38px;">
|
|
|
|
@else
|
|
|
|
<img src="{{ Auth::user()->avatar->url }}" style="height: 38px; width: 38px;">
|
|
|
|
@endif
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2019-09-12 23:48:41 +08:00
|
|
|
|
2019-10-30 01:03:04 +08:00
|
|
|
<a class="dropdown-item" href="{{ route('frontend.profile.index') }}">
|
|
|
|
<i class="far fa-user"></i> @lang('common.profile')
|
|
|
|
</a>
|
2019-09-12 23:48:41 +08:00
|
|
|
|
2020-01-30 22:00:41 +08:00
|
|
|
@ability('admin', 'admin-access')
|
2019-10-30 01:03:04 +08:00
|
|
|
<a class="dropdown-item" href="{{ url('/admin') }}">
|
|
|
|
<i class="fas fa-circle-notch"></i> @lang('common.administration')
|
|
|
|
</a>
|
2020-01-30 22:00:41 +08:00
|
|
|
@endability
|
2019-10-30 01:03:04 +08:00
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item" href="{{ url('/logout') }}">
|
|
|
|
<i class="fas fa-sign-out-alt"></i> @lang('common.logout')
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
2019-09-17 03:17:51 +08:00
|
|
|
@endif
|
2019-09-12 23:48:41 +08:00
|
|
|
|
2019-10-30 01:03:04 +08:00
|
|
|
</ul>
|
2019-09-17 03:17:51 +08:00
|
|
|
</div>
|
|
|
|
</div>
|