Skip to content

Commit

Permalink
Add notifications menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
NickMous committed Aug 13, 2024
1 parent 61c7220 commit 6947ae1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/SendTestNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SendTestNotification extends Command implements PromptsForMissingInput
public function handle()
{
$user = User::findOrFail($this->argument('user'));
$this->info("Sending " . $this->argument('amount') . " test notification(s) to user {$this->argument('user')} with status {$this->argument('status')}.");
$this->info('Sending '.$this->argument('amount')." test notification(s) to user {$this->argument('user')} with status {$this->argument('status')}.");
$this->info('Sleeping for 5 seconds...');
sleep(5);
for ($i = 0; $i < $this->argument('amount'); $i++) {
Expand Down
1 change: 1 addition & 0 deletions lang/en/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'logout' => 'Log out',
'manage_account' => 'Manage Account',
'manage_team' => 'Manage Team',
'notifications' => 'Notifications',
'profile' => 'Profile',
'register' => 'Register',
'switch_teams' => 'Switch Teams',
Expand Down
1 change: 1 addition & 0 deletions lang/nl/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'logout' => 'Uitloggen',
'manage_account' => 'Account beheren',
'manage_team' => 'Team beheren',
'notifications' => 'Meldingen',
'profile' => 'Profiel',
'register' => 'Registreren',
'switch_teams' => 'Teams wisselen',
Expand Down
5 changes: 5 additions & 0 deletions resources/views/navigation-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ class="font-medium text-sm text-text-600 dark:text-dm-text-300/50">{{ Auth::user
</div>

<div class="mt-3 space-y-1">
<x-responsive-nav-link href="{{ route('notifications.index') }}"
:active="request()->routeIs('notifications.index')">
{{ __('navigation.notifications') }}
</x-responsive-nav-link>

<!-- Account Management -->
<x-responsive-nav-link href="{{ route('profile.show') }}"
:active="request()->routeIs('profile.show')">
Expand Down

0 comments on commit 6947ae1

Please sign in to comment.