On NavBar aswell

This commit is contained in:
1Day 2022-06-02 08:50:44 +02:00
parent c97b1fa186
commit 2e17cab295
3 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class NotificationController extends Controller
foreach($notifications as $notification){
$notification->markAsRead();
}
return $this->index();
return redirect()->back();
}
}

View file

@ -112,6 +112,9 @@
<div class="dropdown-divider"></div>
<a href="{{ route('notifications.index') }}"
class="dropdown-item dropdown-footer">{{ __('See all Notifications') }}</a>
<div class="dropdown-divider"></div>
<a href="{{ route('notifications.readAll') }}"
class="dropdown-item dropdown-footer">{{ __('Mark all as read') }}</a>
</div>
</li>

View file

@ -30,7 +30,7 @@
<p>{{__('All notifications')}}</p>
</div>
<a class="float-right">
<a href="{{route('notifications.readAll')}}"><button class="btn btn-info btn-xs">{{__('mark all as read')}}</button></a>
<a href="{{route('notifications.readAll')}}"><button class="btn btn-info btn-xs">{{__('Mark all as read')}}</button></a>
@foreach($notifications as $notification)