@if(\Auth::user()->unreadNotifications()->orderBy('id','desc')->take(10)->count() > 0 ) @foreach(\Auth::user()->unreadNotifications()->orderBy('id','desc')->take(10)->get() as $notification) @if(isset($notification->data['content']))
  • {{ $notification->data['icon'] }}
  • @endif @endforeach @else
  • @endif