Skip to content

Commit

Permalink
Bug(Reports): Fix tabs not appropriately being set to active
Browse files Browse the repository at this point in the history
  • Loading branch information
AW0005 authored Nov 23, 2024
1 parent 11b2b23 commit 6c5b48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/home/reports.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<a class="nav-link {{ !Request::get('type') || Request::get('type') == 'pending' ? 'active' : '' }}" href="{{ url('reports') }}">Pending</a>
</li>
<li class="nav-item">
<a class="nav-link {{ Request::get('type') == 'approved' }}" href="{{ url('reports') . '?type=assigned' }}">Assigned</a>
<a class="nav-link {{ Request::get('type') == 'approved' ? 'active' : '' }}" href="{{ url('reports') . '?type=assigned' }}">Assigned</a>
</li>
<li class="nav-item">
<a class="nav-link {{ Request::get('type') == 'closed' }}" href="{{ url('reports') . '?type=closed' }}">Closed</a>
<a class="nav-link {{ Request::get('type') == 'closed' ? 'active' : '' }}" href="{{ url('reports') . '?type=closed' }}">Closed</a>
</li>
</ul>

Expand Down

0 comments on commit 6c5b48a

Please sign in to comment.