@if(!empty($notifications)) @foreach($notifications as $notification)
@if ($notification->created_at > $user->lastnotification) @endif @if ( $notification->type == "message" )
@elseif ( $notification->type == "delete" )
@elseif ( $notification->type == "calendar" )
@elseif ( $notification->type == "newaccount" )
@elseif ( $notification->type == "payment" )
@endif
{{ date('F j, Y h:ia', strtotime($notification->created_at)) }}
{{ $notification->message }}
@endforeach @else

It's empty here!

@endif