@if(\Auth::user()->unreadNotifications()->orderBy('id','desc')->get()->count() > 0 )
@endif
@if(\Auth::user()->unreadNotifications()->count() > 0 ) @if(\Auth::user()->unreadNotifications()->count() == 1 )
@lang('notifications::notifications.one_new_title')
@lang('notifications::notifications.one_new_subtitle')
@else
@lang('notifications::notifications.new_notification_title', ['count' => \Auth::user()->unreadNotifications()->count() ] )
@lang('notifications::notifications.new_notification_subtitle', ['count' => \Auth::user()->unreadNotifications()->count() ] )
@endif @else
@lang('notifications::notifications.no_notifications')
@endif
@if(\Auth::user()->notifications()->count() > 0 )
@foreach(\Auth::user()->notifications()->orderBy('id','desc')->take(10)->get() as $notification) @if(isset($notification->data['content']))
unread()) style="background-color: #fff6e6" @endif>
{{ $notification->data['content'] }}
{{ \Modules\Platform\Core\Helper\UserHelper::formatUserDateTime($notification->created_at) }}
@endif @endforeach
@else
@lang('notifications::notifications.no_new_notifications')
@endif