Notifcation bug fix

Fixed bugs in notification view for PHP7.2 #671
This commit is contained in:
Manish Verma
2018-08-18 10:52:37 +05:30
committed by Manish Verma
parent 090be28e50
commit 30128cabdf
2 changed files with 1 additions and 2 deletions

View File

@@ -111,7 +111,6 @@ class NotificationController extends Controller
public function show()
{
$notifications = $this->getNotifications();
//dd($notifications);
return view('notifications-all', compact('notifications'));
}

View File

@@ -115,7 +115,7 @@ class="active"
<!-- /.box-header -->
<div class="box-body">
<ul class="todo-list">
@if(count($notifications))
@if($notifications)
@foreach($notifications->orderBy('created_at', 'desc')->paginate(10) as $notification)
@if($notification->notification && $notification->notification->type && $notification->notification->type->type == 'registration')