Fixing active class on settings module list sidebar

parent 9e9794f0
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<?php foreach ($modulesWithSettings as $module => $settings): ?> <?php foreach ($modulesWithSettings as $module => $settings): ?>
<li> <li>
<a href="{{ URL::route('dashboard.module.settings', [$module]) }}" <a href="{{ URL::route('dashboard.module.settings', [$module]) }}"
class="{{ $module == $currentModule->getLowerName() ? 'active' : '' }}"> class="{{ $module === $currentModule->getName() ? 'active' : '' }}">
{{ ucfirst($module) }} {{ ucfirst($module) }}
<small class="badge pull-right bg-blue">{{ count($settings) }}</small> <small class="badge pull-right bg-blue">{{ count($settings) }}</small>
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment