@php use App\Classes\FTN\Message; use App\Models\{Echomail,Netmail}; @endphp
TO: {!! Message::tr($msg->to) !!} @if ($msg instanceof 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=Echomail::where('replyid',$msg->msgid)->count()) ({{$x}} replies)@endif @if($msg->replyid)
REPLY: {{ $msg->replyid }}@endif
@if($msg->flags()->count())
FLAGS: {!! $msg->flags()->keys()->map(fn($item)=>strtoupper($item))->join(', ') !!}
@endif @if ($msg instanceof Echomail)
ECHOAREA: {{ $msg->echoarea->name }} ({{ $msg->echoarea->domain->name }})
@endif
SUBJECT: {!! Message::tr($msg->subject) !!}
KLUDGES:
@foreach($msg->kludges as $k=>$v) {{ $k }} {{ $v }}
@endforeach
@if ($msg instanceof Echomail)
SEENBY:
{!! $msg->seenby->pluck('ftn2d')->join(', ') !!}
@if($msg->rogue_seenby->count())
[NOTE: Some seen-by values couldnt be identified - ({{ $msg->rogue_seenby->transform(fn($item)=>str_replace('0:','',$item))->join(',') }})] @endif
@endif
PATH:
{!! $msg->pathorder()->join(' -> ') !!} @if(($msg instanceof Echomail) && $msg->rogue_path->count())
[NOTE: Some path values couldnt be identified - ({{ $msg->rogue_path->join(',') }})] @endif
@if($msg instanceof Netmail) RECEIVED:
@foreach ($msg->path as $path) {{ $path->pivot->recv_pkt }} from {{ $path->ftn }} {{ $msg->created_at }} @endforeach @elseif ($msg instanceof Echomail) RECEIVED:
{{ ($x=$msg->path->sortBy('pivot.parent_id')->last())->pivot->recv_pkt }} from {{ $x->ftn }} {{ $x->pivot->recv_at }} @endif
@if($msg instanceof Netmail)
SENT: @if($msg->sent_pkt && $msg->sent_at) {{ $msg->sent_at }} ({{ $msg->sent_pkt }}.pkt) @else NOT SENT @endif
@endif @section('page-scripts') @append