@php use App\Classes\FTN\Message; @endphp
TO: {!! Message::tr($msg->to) !!} @if ($msg instanceof \App\Models\Netmail)({{ $msg->tftn->ftn }})@endif
DATE: {{ $msg->datetime->format('Y-m-d H:i:s') }}
FROM: {!! Message::tr($msg->from) !!} ({{ $msg->fftn->ftn }})
MSGID: {{ $msg->msgid }}@if($x=\App\Models\Echomail::where('replyid',$msg->msgid)->count()) ({{$x}} replies)@endif @if($msg->replyid)
REPLY: {{ $msg->replyid }}@endif
SUBJECT: {!! Message::tr($msg->subject) !!}
@if ($msg instanceof \App\Models\Echomail)
ECHOAREA: {{ $msg->echoarea->name }} ({{ $msg->echoarea->domain->name }})
@endif
{!! Message::tr($msg->msg).($msg->origin ? sprintf("\r * Origin: %s",$msg->origin) : '') !!}
@if ($msg instanceof \App\Models\Echomail)
SEENBY:
{!! optimize_path($msg->seenby->pluck('ftn2d'))->join(', ') !!}
@if ($msg->rogue_seenby->count())
[NOTE: Some seen-by values couldnt be identified - ({{ $msg->rogue_seenby->join(',') }})] @endif
@endif @if ($msg->flags & Message::FLAG_LOCAL)
Local message
@elseif ((! $msg->flags) || ($msg->flags & (Message::FLAG_INTRANSIT|Message::FLAG_RECD)))
PATH:
{!! optimize_path($msg->pathorder())->join(' -> ') !!} @if ($msg->rogue_path->count())
[NOTE: Some path values couldnt be identified - ({{ $msg->rogue_path->join(',') }})] @endif
@if ($msg->flags)
RECEIVED: @foreach ($msg->received as $path) {{ $path->pivot->recv_pkt }} by {{ $path->ftn }} {{ $msg->created_at }} @endforeach
@endif @endif