@if (!is_null($project->rating))
@if (
$viewRatingPermission == 'all'
|| ($viewRatingPermission == 'added' && $project->rating->added_by == user()->id)
|| ($viewRatingPermission == 'owned' && $project->client_id == user()->id)
|| ($viewRatingPermission == 'both' && ($project->client_id == user()->id || $project->rating->added_by == user()->id))
)
{{ nl2br($project->rating->comment) }}
@else
@endif
@else
@endif