Skip to content

Commit

Permalink
Update resources/views/layouts/sidebar.blade.php
Browse files Browse the repository at this point in the history
Co-authored-by: Thor K. Høgås <[email protected]>
  • Loading branch information
blt950 and thor authored Oct 9, 2023
1 parent b952e1c commit bf71dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layouts/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<a class="nav-link" href="{{ route('tasks') }}">
<i class="fas fa-fw fa-list"></i>
<span>Tasks</span>
@if(\Auth::user()->tasks->where('status', \App\Helpers\TaskStatus::PENDING->value)->count())
<span class="badge text-bg-danger">{{ \Auth::user()->tasks->where('status', \App\Helpers\TaskStatus::PENDING->value)->count() }}</span>
@if(\Auth::user()->tasks->where('status', \App\Helpers\TaskStatus::PENDING)->count())
<span class="badge text-bg-danger">{{ \Auth::user()->tasks->where('status', \App\Helpers\TaskStatus::PENDING)->count() }}</span>
@endif
</a>
</li>
Expand Down

0 comments on commit bf71dce

Please sign in to comment.