@endif
@if ($conversation->isPhone() && $thread->first)
@endif
@action('thread.after_header', $thread, $loop, $threads, $conversation, $mailbox)
@php
$send_status_data = $thread->getSendStatusData();
@endphp
@if ($send_status_data)
@if (!empty($send_status_data['is_bounce']))
@if (empty($send_status_data['bounce_for_thread']) || empty($send_status_data['bounce_for_conversation']))
{{ __('This is a bounce message.') }}
@else
@php
$bounce_for_conversation = App\Conversation::find($send_status_data['bounce_for_conversation']);
@endphp
@if ($bounce_for_conversation)
{!! __('This is a bounce message for :link', [
'link' => '
#'.$bounce_for_conversation->number.''
]) !!}
@endif
@endif
@endif
@endif
@if ($thread->isSendStatusError())
{{ __('Message not sent to customer') }} (
{{ __('View log') }})
@if ($thread->canRetrySend())
@endif
@if (!empty($send_status_data['bounced_by_thread']) && !empty($send_status_data['bounced_by_conversation']))
@php
$bounced_by_conversation = App\Conversation::find($send_status_data['bounced_by_conversation']);
@endphp
@if ($bounced_by_conversation)
{!! __('Message bounced (:link)', [
'link' => '#'.$bounced_by_conversation->number.''
]) !!}
@endif
@endif
@if (!empty($send_status_data['msg']))
{{ $send_status_data['msg'] }}
@endif
@endif
@if ($thread->isForwarded())
@endif
@if ($thread->isForward())
@endif
@action('thread.before_body', $thread, $loop, $threads, $conversation, $mailbox)
{!! \Eventy::filter('thread.body_output', $thread->getBodyWithFormatedLinks(), $thread, $conversation, $mailbox) !!}
@if ($thread->body_original)
@endif
@if ($thread->opened_at)
{{ __("Customer viewed :when", ['when' => App\User::dateDiffForHumansWithHours($thread->opened_at)]) }}
@endif
@action('thread.meta', $thread, $loop, $threads, $conversation, $mailbox)
@include('conversations/partials/thread_attachments')