On NavBar aswell
This commit is contained in:
parent
c97b1fa186
commit
2e17cab295
3 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
</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)
|
||||
|
|
Loading…
Add table
Reference in a new issue