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');
|
|
|
|
$canManageStorage = Auth::user()->can('admin:manage-storage');
|
|
|
|
$canManageUsers = Auth::user()->can('admin:manage-users');
|
|
|
|
@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
|
|
|
|
@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
|
|
|
|
@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
|