Skip to content

Commit

Permalink
Only show mark as read if more than 1 unread notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarlow committed Sep 4, 2024
1 parent 2101f62 commit cdfa6b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/views/popout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
Unread Notifications
</h2>

<button class="focus:outline-none text-sm leading-normal pt-8 hover:text-indigo-700" wire:click="markAllRead()">
Mark all as read
</button>
@if ($unread->count() > 1)
<button class="focus:outline-none text-sm leading-normal pt-8 hover:text-indigo-700" wire:click="markAllRead()">
Mark all as read
</button>
@endif
</div>

@foreach ($unread as $announcement)
Expand Down

0 comments on commit cdfa6b7

Please sign in to comment.