2017-09-10 13:21:45 +01:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="navbar-brand" href="{{ route('home') }}"><i class="fa fa-fw fa-photo"></i> {{ UserConfig::get('app_name') }}</a>
|
2017-09-01 15:20:01 +01:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-content" aria-controls="navbar-content" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<i class="fa fa-fw fa-bars"></i>
|
|
|
|
</button>
|
2016-09-01 16:23:39 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
<div class="collapse navbar-collapse" id="navbar-content">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
2017-09-10 21:27:40 +01:00
|
|
|
@can('photo.quick_upload')
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#" data-toggle="modal" data-target="#quick-upload-modal">
|
|
|
|
<i class="fa fa-plus"></i> @lang('navigation.navbar.quick_post')
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endcan
|
|
|
|
|
2018-07-11 08:45:40 +01:00
|
|
|
@if (count($g_albums) > 0)
|
2017-09-10 13:21:45 +01:00
|
|
|
<li class="nav-item dropdown ml-2">
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="nav-link dropdown-toggle" href="{{ url('/') }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2017-09-06 16:08:38 +01:00
|
|
|
<i class="fa fa-book"></i> @lang('navigation.navbar.albums')
|
2017-03-22 16:55:39 +00:00
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu">
|
2018-07-12 22:52:50 +01:00
|
|
|
@foreach ($g_albums_menu as $album)
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="dropdown-item" href="{{ $album->url() }}">{{ $album->name }}</a>
|
2016-09-03 22:13:05 +01:00
|
|
|
@endforeach
|
2018-07-12 22:52:50 +01:00
|
|
|
|
|
|
|
@if ($g_more_albums > 0)
|
|
|
|
<a class="dropdown-item" href="{{ route('home') }}">{{ trans_choice('gallery.show_more_albums', $g_more_albums) }}</a>
|
|
|
|
@endif
|
2017-03-22 16:55:39 +00:00
|
|
|
</div>
|
2016-09-01 16:23:39 +01:00
|
|
|
</li>
|
2017-09-10 13:21:45 +01:00
|
|
|
@endif
|
|
|
|
|
2017-09-10 14:01:20 +01:00
|
|
|
@if (count($g_labels) > 0)
|
2017-09-10 13:21:45 +01:00
|
|
|
<li class="nav-item dropdown ml-2">
|
|
|
|
<a class="nav-link dropdown-toggle" href="{{ url('/') }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<i class="fa fa-tags"></i> @lang('navigation.navbar.labels')
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
@foreach ($g_labels as $label)
|
|
|
|
<a class="dropdown-item" href="{{ $label->url() }}">{{ $label->name }} ({{ number_format($label->photos_count, 0) }})</a>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
@if ($g_more_labels > 0)
|
|
|
|
<a class="dropdown-item" href="{{ route('labels') }}">{{ trans_choice('gallery.show_more_labels', $g_more_labels) }}</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
|
2018-07-11 08:49:43 +01:00
|
|
|
@if (count($g_albums) > 0 && \App\User::currentOrAnonymous()->can('statistics.public-access'))
|
2017-09-10 13:21:45 +01:00
|
|
|
<li class="nav-item ml-2">
|
2017-09-06 16:08:38 +01:00
|
|
|
<a class="nav-link" href="{{ route('statistics.index') }}"><i class="fa fa-bar-chart"></i> @lang('navigation.navbar.statistics')</a>
|
|
|
|
</li>
|
2017-03-22 16:55:39 +00:00
|
|
|
@endif
|
2016-09-03 22:13:05 +01:00
|
|
|
|
2017-04-15 09:41:15 +01:00
|
|
|
@if (!Auth::guest() && (Auth::user()->can('admin:access')))
|
2017-09-10 13:21:45 +01:00
|
|
|
<li class="nav-item ml-2">
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="nav-link" href="{{ route('admin') }}"><i class="fa fa-fw fa-cog"></i> @lang('navigation.navbar.admin')</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
2016-09-01 16:23:39 +01:00
|
|
|
|
2017-03-22 16:55:39 +00:00
|
|
|
@if (Auth::guest())
|
|
|
|
<form class="form-inline my-2 my-lg-0">
|
|
|
|
@if (UserConfig::get('allow_self_registration') == 1)
|
|
|
|
<a class="btn btn-info" href="{{ url('/register') }}" style="margin-right: 10px;">@lang('navigation.navbar.register')</a>
|
2016-09-01 16:23:39 +01:00
|
|
|
@endif
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="btn {{ UserConfig::get('allow_self_registration') == 1 ? 'btn-outline-info' : 'btn-info' }}" href="{{ url('/login') }}">@lang('navigation.navbar.login')</a>
|
|
|
|
</form>
|
|
|
|
@else
|
|
|
|
<ul class="navbar-nav right">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="{{ url('/') }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
{{ Auth::user()->name }}
|
|
|
|
{{--<img class="avatar" src="{{ Theme::gravatarUrl(Auth::user()->email, 42) }}" alt="{{ Auth::user()->name }}" title="{{ Auth::user()->name }}" />--}}
|
|
|
|
</a>
|
2017-04-16 09:00:57 +01:00
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2017-04-10 21:04:10 +01:00
|
|
|
<a class="dropdown-item" href="{{ route('auth.changePassword') }}">@lang('navigation.navbar.change_password')</a>
|
2017-03-22 16:55:39 +00:00
|
|
|
<a class="dropdown-item" href="{{ url('/logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">@lang('navigation.navbar.logout')</a>
|
|
|
|
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</li>
|
2016-09-01 16:23:39 +01:00
|
|
|
</ul>
|
2017-03-22 16:55:39 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
2018-07-11 08:45:40 +01:00
|
|
|
</nav>
|