Merge pull request #272 from Yohn/Admin-Sidebar-Links
Admin dropdown auto shows
This commit is contained in:
commit
bc938242a8
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue