Created
January 3, 2023 10:34
-
-
Save aklimaruhina/141e7bb20c5e51e62692184d595e2b9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When you need to add active link to your admin panel dashboard and make them show their activity status. following this code will hhelp. | |
#laravel #admin-panel | |
<li class="nav-main-item"> | |
<a class="nav-main-link{{ request()->is('admin') ? ' active' : '' }}" href="/admin"> | |
<i class="nav-main-link-icon si si-cursor"></i> | |
<span class="nav-main-link-name">Dashboard</span> | |
</a> | |
</li> | |
<li class="nav-main-item{{ request()->is('admin/orders/*') || request()->is('admin/orders') || request()->is('admin/orders-record/*') ? ' open' : '' }}"> | |
<a class="nav-main-link nav-main-link-submenu" data-toggle="submenu" aria-haspopup="true" aria-expanded="true" href="#"> | |
<i class="nav-main-link-icon si si-bulb"></i> | |
<span class="nav-main-link-name">Orders</span> | |
</a> | |
<ul class="nav-main-submenu"> | |
<li class="nav-main-item"> | |
<a class="nav-main-link{{ request()->is('/admin/orders') ? ' active' : '' }}" href="{{route('r')}}"> | |
<span class="nav-main-link-name">All Orders</span> | |
</a> | |
</li> | |
</ul> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment