@@ -31,7 +31,7 @@ class NotificationController extends Controller
foreach($notifications as $notification){
$notification->markAsRead();
}
- return $this->index();
+ return redirect()->back();
@@ -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>
@@ -30,7 +30,7 @@
<p>{{__('All notifications')}}</p>
<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)