Files
einundzwanzig-portal/resources/views/vendor/comments/mail/approvedCommentNotification.blade.php
Benjamin Takats 840f79e7fc book cases added
2022-12-07 14:57:15 +01:00

25 lines
1018 B
PHP

@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 {{ $topLevelComment->commentable->commentableName() }}</a>
@endif
@endcomponent