/**
  * Get notifications
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function getNotifications()
 {
     $notifications = Notification::getNotifications();
     $unseen = 0;
     foreach ($notifications as $notification) {
         if (!$notification->seen) {
             $unseen++;
         }
     }
     return $this->success(['notifications' => $notifications, 'total' => $notifications->count(), 'unseen' => $unseen]);
 }
 /**
  * Get all notifications
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function getNotifications()
 {
     $notifications = Notification::getNotifications();
     return $this->success($notifications);
 }