Merge pull request #272 from Yohn/Admin-Sidebar-Links

Admin dropdown auto shows
This commit is contained in:
Julian Prieber 2022-12-14 18:50:09 +01:00 committed by GitHub
commit bc938242a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 18 deletions

View File

@ -188,10 +188,9 @@ if($url1sb == '200' or $url2sb == '200') {
@endif @endif
</a> </a>
@if(auth()->user()->role == 'admin') @if(auth()->user()->role == 'admin')
<ul class="list-unstyled components mb-5">
<li class="active"> <li class="active">
<a @if(config('advanced-config.expand_panel_admin_menu_permanently') != 'true') href="#adminSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle" @endif>Admin</a> <a href="#adminSubmenu" data-toggle="collapse" @if(Request::segment(1) == 'panel' ) class="dropdown-toggle" aria-expanded="true" @else class="dropdown-toggle collapsed" aria-expanded="false" @endif>Admin</a>
<ul class="@if(config('advanced-config.expand_panel_admin_menu_permanently') != 'true') collapse @endif list-unstyled" id="adminSubmenu"> <ul class="collapse list-unstyled @if(Request::segment(1) == 'panel' ) show @endif " id="adminSubmenu">
<li class="{{ Request::segment(2) == 'config' ? 'active' : ''}}"> <li class="{{ Request::segment(2) == 'config' ? 'active' : ''}}">
<a href="{{ url('panel/config') }}">Config</a> <a href="{{ url('panel/config') }}">Config</a>
</li> </li>