2017-04-15 09:58:33 +01:00
|
|
|
@php
|
|
|
|
$canConfigure = Auth::user()->can('admin:configure');
|
|
|
|
$canManageAlbums = Auth::user()->can('admin:manage-albums');
|
|
|
|
$canManageGroups = Auth::user()->can('admin:manage-groups');
|
2017-09-10 09:07:56 +01:00
|
|
|
$canManageLabels = Auth::user()->can('admin:manage-labels');
|
2017-04-15 09:58:33 +01:00
|
|
|
$canManageStorage = Auth::user()->can('admin:manage-storage');
|
|
|
|
$canManageUsers = Auth::user()->can('admin:manage-users');
|
2018-09-21 15:00:07 +01:00
|
|
|
$canManageComments = Auth::user()->can('admin:manage-comments');
|
2020-04-19 10:54:07 +01:00
|
|
|
$canManageServices = Auth::user()->can('admin:manage-services');
|
2017-04-15 09:58:33 +01:00
|
|
|
@endphp
|
2017-04-15 09:41:15 +01:00
|
|
|
|
2017-04-15 09:58:33 +01:00
|
|
|
@if ($canConfigure || $canManageAlbums || $canManageGroups || $canManageStorage || $canManageUsers)
|
|
|
|
<div class="card admin-sidebar-card">
|
|
|
|
<div class="card-header">@lang('admin.manage_widget.panel_header')</div>
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="card-body">
|
2017-04-15 09:58:33 +01:00
|
|
|
@if ($canManageAlbums)
|
|
|
|
<a class="btn btn-link" href="{{ route('albums.index') }}"><i class="fa fa-fw fa-picture-o"></i> @lang('navigation.breadcrumb.albums')</a>
|
|
|
|
@endif
|
2017-09-10 09:07:56 +01:00
|
|
|
@if ($canManageLabels)
|
|
|
|
<a class="btn btn-link" href="{{ route('labels.index') }}"><i class="fa fa-fw fa-tags"></i> @lang('navigation.breadcrumb.labels')</a>
|
|
|
|
@endif
|
2018-09-21 15:00:07 +01:00
|
|
|
@if ($canManageComments)
|
|
|
|
<a class="btn btn-link" href="{{ route('comments.index') }}"><i class="fa fa-fw fa-edit"></i> @lang('navigation.breadcrumb.comments')</a>
|
|
|
|
@endif
|
2017-04-15 09:58:33 +01:00
|
|
|
@if ($canManageUsers)
|
|
|
|
<a class="btn btn-link" href="{{ route('users.index') }}"><i class="fa fa-fw fa-user"></i> @lang('navigation.breadcrumb.users')</a>
|
|
|
|
@endif
|
|
|
|
@if ($canManageGroups)
|
|
|
|
<a class="btn btn-link" href="{{ route('groups.index') }}"><i class="fa fa-fw fa-users"></i> @lang('navigation.breadcrumb.groups')</a>
|
|
|
|
@endif
|
|
|
|
@if ($canManageStorage)
|
|
|
|
<a class="btn btn-link" href="{{ route('storage.index') }}"><i class="fa fa-fw fa-folder"></i> @lang('navigation.breadcrumb.storage')</a>
|
|
|
|
@endif
|
2020-04-19 10:54:07 +01:00
|
|
|
@if ($canManageServices)
|
|
|
|
<a class="btn btn-link" href="{{ route('services.index') }}"><i class="fa fa-fw fa-refresh"></i> @lang('navigation.breadcrumb.services')</a>
|
|
|
|
@endif
|
2017-04-15 09:58:33 +01:00
|
|
|
@if ($canConfigure)
|
|
|
|
<a class="btn btn-link" href="{{ route('admin.settings') }}"><i class="fa fa-fw fa-cog"></i> @lang('navigation.breadcrumb.settings')</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-09-09 15:06:34 +01:00
|
|
|
</div>
|
2017-04-15 09:58:33 +01:00
|
|
|
@endif
|