@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
@if ($msg instanceof \App\Models\Echomail)
SEENBY:
{!! $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)
@elseif ((! $msg->flags) || ($msg->flags & (Message::FLAG_INTRANSIT|Message::FLAG_RECD)))
PATH:
{!! $msg->pathorder()->join(' -> ') !!}
@if (($msg instanceof \App\Models\Echomail) && $msg->rogue_path->count())
[NOTE: Some path values couldnt be identified - ({{ $msg->rogue_path->join(',') }})]
@endif
RECEIVED:
@if ($msg instanceof \App\Models\Netmail)
@foreach ($msg->received as $path)
{{ $path->pivot->recv_pkt }} from {{ $path->ftn }} {{ $msg->created_at }}
@endforeach
@elseif ($msg instanceof \App\Models\Echomail)
{{ ($x=$msg->path->sortBy('pivot.parent_id')->last())->pivot->recv_pkt }} from {{ $x->ftn }} {{ $x->pivot->recv_at }}
@endif
@endif
@section('page-scripts')
@append