@extends('layouts.app')
@section('content')
@foreach($notifications as $notification)
-
@switch($notification->action)
@case('like')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@break
@case('follow')
{!! $notification->rendered !!}
{{$notification->created_at->diffForHumans(null, true, true, true)}}
@if($notification->actor->followedBy(Auth::user()->profile) == false)
@endif
@break
@endswitch
@endforeach
@endsection