@component('mail::message')
# {{ __('comments::notifications.approved_comment_mail_title', [
    'commentable_name' => $topLevelComment->commentable->commentableName(),
    'commentable_url' => $topLevelComment->commentable->commentUrl(),
    'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous',
]) }}

{{ __('comments::notifications.approved_comment_mail_body', [
    'commentable_name' => $topLevelComment->commentable->commentableName(),
    'commentable_url' => $topLevelComment->commentable->commentUrl(),
    'commentator_name' => $comment->commentatorProperties()->name ?? 'anonymous',
]) }}

{!! $comment->text !!}

@component('mail::button', ['url' => $comment->commentUrl()])
{{ __('comments::notifications.view_comment') }}
@endcomponent

@if($unsubscribeUrl = $commentator->unsubscribeFromCommentNotificationsUrl($comment))
<a href="{{ $unsubscribeUrl }}">{{ __('Unsubscribe from receive notification about :commentableName', ['commentableName' => $topLevelComment->commentable->commentableName()]) }}</a>
@endif

@endcomponent
