Skip to content

Commit

Permalink
Add indicator of new messages on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
agentphoenix committed Sep 25, 2024
1 parent a2b8d43 commit 00018df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nova/resources/views/layouts/app-sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ class="text-gray-400 dark:text-gray-600"
<x-icon name="search"></x-icon>
</x-navbar.item>
<x-navbar.item :href="route('admin.messages.index')" class="relative">
{{-- <div class="absolute right-0 top-2 size-2 rounded-full bg-danger-500"></div> --}}
@if (auth()->user()->unread_messages_count > 0)
<div class="absolute right-0 top-2 size-2 rounded-full bg-primary-500"></div>
@endif

<x-icon name="inbox"></x-icon>
</x-navbar.item>
<livewire:users-notifications />
Expand Down

0 comments on commit 00018df

Please sign in to comment.