sidebar active

This commit is contained in:
Dharmaraj Shrestha 2024-04-10 12:02:46 +05:45
parent c019fcb02d
commit c1a81191fa

View File

@ -34,8 +34,8 @@
<a href="#" class="nav-link"> <i class="ri-home-line"></i>Dashboard </a>
</li>
<li class="nav-item">
<a class="nav-link menu-link {{ \Request::is('employee') || (\Request::is('employee/*') ? 'active' : '') }}"
<li class="nav-item active">
<a class="nav-link menu-link @if (\Request::is('employee') || \Request::is('employee/*')) active @endif"
href="{{ route('employee.index') }}">
<i class="ri-team-line"></i> <span data-key="t-widgets">Employee</span>
</a>
@ -65,12 +65,12 @@
<li class="nav-item">
<a href="{{ route('user.index') }}"
class="nav-link @if (\Request::is('user/*')) active @endif">Users</a>
class="nav-link @if (\Request::is('user') || \Request::is('user/*')) active @endif">Users</a>
</li>
<li class="nav-item">
<a href="{{ route('role.index') }}"
class="nav-link @if (\Request::is('role/*')) active @endif">Roles</a>
class="nav-link @if (\Request::is('role') || \Request::is('role/*')) active @endif">Roles</a>
</li>
<li class="nav-item">