2018-01-20 06:07:31 +08:00
|
|
|
<ul class="navbar-nav">
|
|
|
|
@if(Auth::check())
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.dashboard.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-tachometer-alt"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>@lang('common.dashboard')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.livemap.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-globe"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>@lang('common.livemap')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.pilots.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-users"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>{{ trans_choice('common.pilot', 2) }}</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2018-02-05 01:05:44 +08:00
|
|
|
{{-- Show the module links that don't require being logged in --}}
|
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url($link['url']) }}">
|
|
|
|
<i class="{{ $link['icon'] }}"></i>
|
2018-05-18 06:03:30 +08:00
|
|
|
<p>{{ ($link['title']) }}</p>
|
2018-02-05 01:05:44 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
|
2018-01-20 06:07:31 +08:00
|
|
|
@if(!Auth::check())
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url('/login') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-sign-in-alt"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>@lang('common.login')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url('/register') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="far fa-id-card"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>@lang('common.register')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.flights.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fab fa-avianex"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>{{ trans_choice('common.flight', 2) }}</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.pireps.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-cloud-upload-alt"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>{{ trans_choice('common.pirep', 2) }}</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2018-04-03 07:37:41 +08:00
|
|
|
<a class="nav-link" href="{{ route('frontend.profile.index') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="far fa-user"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>@lang('common.profile')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-03 07:37:41 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('frontend.downloads.index') }}">
|
|
|
|
<i class="fas fa-download"></i>
|
2018-05-19 03:18:12 +08:00
|
|
|
<p>{{ trans_choice('common.download', 2) }}</p>
|
2018-04-03 07:37:41 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-01-20 06:07:31 +08:00
|
|
|
|
|
|
|
@role('admin')
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url('/admin') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-circle-notch"></i>
|
2018-05-21 23:32:38 +08:00
|
|
|
<p>@lang('common.administration')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endrole
|
|
|
|
|
2018-02-05 01:03:59 +08:00
|
|
|
{{-- Show the module links for being logged in --}}
|
2018-01-20 06:07:31 +08:00
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=true) as &$link)
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url($link['url']) }}">
|
|
|
|
<i class="{{ $link['icon'] }}"></i>
|
2018-05-18 06:03:30 +08:00
|
|
|
<p>{{ ($link['title']) }}</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2018-03-13 06:58:12 +08:00
|
|
|
<a class="nav-link" href="{{ url('/logout') }}">
|
2018-02-23 01:34:57 +08:00
|
|
|
<i class="fas fa-sign-out-alt"></i>
|
2018-05-21 23:32:38 +08:00
|
|
|
<p>@lang('auth.logout')</p>
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|