I'm trying to show an HTML containing variables if a condition was met, else just show "test" word.
<a href="/StuffSpot/notifPost/{{ $notification->id }}">{{ $notification->read == 1 ? '<strong>{{$notification->send_uname}}</strong> has commented on <strong>{{$notification->title}}</strong> post' : 'test' }}</a>
I'm receiving the following error :
Parse error: syntax error, unexpected '}', expecting ',' or ')'