{{-- footer --}}

{{ $mailbox->getReplySeparator() }}

[{{ $mailbox->name }}]

{{ __('Replying to this notification will email :name', ['name' => $customer->getFirstName(true)]) }} ({{ $conversation->customer_email }}) @if ($conversation->getCcArray())
CC: {{ implode(', ', $conversation->getCcArray()) }} @endif

{{-- START header --}} {{-- END header --}} @foreach ($threads as $thread) @if ($thread->type == App\Thread::TYPE_LINEITEM) {{-- Line item --}} @else {{-- Reply --}} @endif @endforeach

@if (count($threads) == 1) {{ __('Received a new conversation') }} @else @if ($thread->action_type == App\Thread::ACTION_TYPE_STATUS_CHANGED) {!! __(":person marked as :status conversation", ['person' => ''.$thread->getCreatedBy()->getFullName(true).'', 'status' => $thread->getStatusName()]) !!} @elseif ($thread->action_type == App\Thread::ACTION_TYPE_USER_CHANGED) @include('emails/user/thread_by') {{ __("assigned to :person conversation", ['person' => $thread->getAssigneeName(false, $user)]) }} @elseif ($thread->type == App\Thread::TYPE_NOTE) {!! __(":person added a note to conversation", ['person' => ''.$thread->getCreatedBy()->getFullName(true).'']) !!} @else {!! __(":person replied to conversation", ['person' => ''.$thread->getCreatedBy()->getFullName(true).'']) !!} @endif @endif #{{ $conversation->number }}

{{ $conversation->subject }}

{{ strtoupper($conversation->getStatusName()) }}
@if ($conversation->user_id)
{{ __('Assigned to') }} {{ $conversation->user->getFullName() }}
@endif
{!! $thread->getActionText('', true, false, $user, htmlspecialchars(view('emails/user/thread_by', ['thread' => $thread, 'user' => $user])->render())) !!}
{{ App\User::dateFormat($thread->created_at, 'M j, H:i', $user) }}

@if ($thread->type == App\Thread::TYPE_NOTE) {!! __(':person added a note', ['person' => ''.$thread->getCreatedBy()->getFullName(true).'']) !!} @else @if ($thread->type == App\Thread::TYPE_MESSAGE) @php $action_color = config('app.colors')['text_user']; @endphp @else @php $action_color = config('app.colors')['text_customer']; @endphp @endif @if ($thread->isForwarded()) @php $trans_text = __(':person forwarded a conversation :forward_parent_conversation_number') @endphp @elseif ($loop->last) @php $trans_text = __(':person started the conversation') @endphp @else @php $trans_text = __(':person replied') @endphp @endif @php $trans_params = ['person' => ''.$thread->getCreatedBy()->getFullName(true).'']; if ($thread->isForwarded()) { $trans_params['forward_parent_conversation_number'] = '#'.$thread->getMetaFw(App\Thread::META_FORWARD_PARENT_CONVERSATION_NUMBER).''; } @endphp {!! __($trans_text, $trans_params) !!} @endif

{{ App\User::dateFormat($thread->created_at, 'M j, H:i', $user) }}
 
@if ($thread->isForward())
{!! __(':person forwarded this conversation. Forwarded conversation: :forward_child_conversation_number', [ 'person' => ucfirst($thread->getForwardByFullName()), 'forward_child_conversation_number' => '#'.$thread->getMetaFw(App\Thread::META_FORWARD_CHILD_CONVERSATION_NUMBER).'' ]) !!}
@endif @action('email_notification.before_body', $thread, $user, $conversation)
{!! $thread->body !!}
@if ($thread->has_attachments)
 

{{ __('Attached:') }} @foreach ($thread->attachments as $attachment) {{ $attachment->file_name }} ({{ $attachment->getSizeName() }})@if (!$loop->last),  @endif @endforeach

@endif

{{ __('Notification Settings') }}{{ \Eventy::action('email_notification.footer_links', $mailbox, $conversation, $threads) }} - {{ $mailbox->name }}

{{-- Addition to Message-ID header to detect relies --}}
{{ \MailHelper::getMessageMarker($headers['Message-ID']) }}