-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF. #2] Add the ability to display notifications in-app.
- Loading branch information
csavelief
committed
Aug 19, 2024
1 parent
a5e9629
commit d34bcc0
Showing
7 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<a href="#" class="outline-none" onclick="event.preventDefault();showNotifications()"> | ||
@if(count($notifications) === 3) | ||
<img src="{{ asset('/images/icons/bell-on-3.png') }}" class="align-self-center" width="20"> | ||
@elseif(count($notifications) === 2) | ||
<img src="{{ asset('/images/icons/bell-on-2.png') }}" class="align-self-center" width="20"> | ||
@elseif(count($notifications) === 1) | ||
<img src="{{ asset('/images/icons/bell-on-1.png') }}" class="align-self-center" width="20"> | ||
@else | ||
<img src="{{ asset('/images/icons/bell-on.png') }}" class="align-self-center" width="20"> | ||
@endif | ||
</a> | ||
<script> | ||
function showNotifications() { | ||
const data = @json($notifications); | ||
drawer25.render = () => { | ||
return 'TODO'; | ||
}; | ||
drawer25.el.show = true; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters