@php $positivComments = $plan->positiveComments(); $negativeComments = $plan->negativeComments(); $positiveCommmentsCount = $positivComments->count(); $negativeCommentsCount = $negativeComments->count(); @endphp
$tabpanelState['negative'] ]) role="tabpanel" id="tabpanel-1" tabindex="0" aria-labelledby="tab-1">
@foreach ($positivComments->get() as $comment)
user
{{ $comment->author->name }}
{{ $comment->body }}
{{ $plan->name }}
{{ $comment->grade }}
@endforeach
$tabpanelState['positive'] ]) role="tabpanel" id="tabpanel-2" tabindex="0" aria-labelledby="tab-1">
@foreach ($negativeComments->get() as $comment)
user
{{ $comment->author->name }}
{{ $comment->body }}
{{ $plan->name }}
{{ $comment->grade }}
@endforeach