/**
  * Notifications
  *
  * @param Request $request
  * @return array|\Illuminate\View\View
  */
 public function all(Request $request)
 {
     $notifications = $this->notification->search($this->currentUser, 10);
     if ($request->has('ajax')) {
         return $this->jsonPagination($notifications, $this->view('ajax.notifications', compact('notifications')));
     }
     return $this->view('notifications.list', compact('notifications'));
 }