@if($notifications->count() > 0)
@foreach($notifications as $notification)
-
@switch($notification->action)
@case('like')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@if($notification->item_id && $notification->item_type == 'App\Status')
@endif
@break
@case('follow')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@if($notification->actor->followedBy(Auth::user()->profile) == false)
@endif
@break
@case('comment')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@if($notification->item_id)
@endif
@break
@case('mention')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@if($notification->item_id && $notification->item_type === 'App\Status')
@if(is_null($notification->status->in_reply_to_id))
@else
@endif
@endif
@break
@endswitch
@endforeach
{{$notifications->links()}}
@else
No unread notifications found.
@endif
@endsection
@push('scripts')
@endpush