2023-07-15 12:10:05 +00:00
|
|
|
@php
|
|
|
|
use App\Classes\FTN\Message;
|
2024-05-17 12:10:54 +00:00
|
|
|
use App\Models\{Echomail,Netmail};
|
2023-07-15 12:10:05 +00:00
|
|
|
@endphp
|
|
|
|
|
2021-08-29 01:48:27 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">
|
2024-05-17 12:10:54 +00:00
|
|
|
TO: <strong class="highlight">{!! Message::tr($msg->to) !!}</strong> @if ($msg instanceof Netmail)(<strong class="highlight">{{ $msg->tftn->ftn }}</strong>)@endif
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
2024-06-28 13:27:06 +00:00
|
|
|
DATE: <strong class="highlight">{{ $msg->date->format('Y-m-d H:i:s') }}</strong>
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-01 05:59:35 +00:00
|
|
|
<div class="row pt-1">
|
2021-08-29 01:48:27 +00:00
|
|
|
<div class="col-4">
|
2023-07-15 12:10:05 +00:00
|
|
|
FROM: <strong class="highlight">{!! Message::tr($msg->from) !!}</strong> (<strong class="highlight">{{ $msg->fftn->ftn }}</strong>)
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
2024-05-17 12:10:54 +00:00
|
|
|
MSGID: <strong class="highlight">{{ $msg->msgid }}</strong>@if($x=Echomail::where('replyid',$msg->msgid)->count()) (<strong class="highlight">{{$x}}</strong> replies)@endif @if($msg->replyid)<br>REPLY: <strong class="highlight">{{ $msg->replyid }}</strong>@endif
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-05-17 12:10:54 +00:00
|
|
|
@if($msg->flags()->count())
|
|
|
|
<div class="row pt-1">
|
|
|
|
<div class="offset-4 col-8">
|
|
|
|
FLAGS: <strong class="highlight">{!! $msg->flags()->keys()->map(fn($item)=>strtoupper($item))->join('</strong>, <strong class="highlight">') !!}</strong>
|
|
|
|
</div>
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
2024-05-17 12:10:54 +00:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($msg instanceof Echomail)
|
|
|
|
<div class="row pt-1 pb-2">
|
|
|
|
<div class="offset-4 col-4">
|
2022-02-11 23:21:46 +00:00
|
|
|
ECHOAREA: <strong class="highlight">{{ $msg->echoarea->name }}</strong> (<strong class="highlight">{{ $msg->echoarea->domain->name }}</strong>)
|
|
|
|
</div>
|
2024-05-17 12:10:54 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="row pt-1 pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
SUBJECT: <strong class="highlight">{!! Message::tr($msg->subject) !!}</strong>
|
|
|
|
</div>
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
2023-12-19 04:16:10 +00:00
|
|
|
<div class="p-2">
|
|
|
|
<div id="canvas"></div>
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-05-17 12:10:54 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
KLUDGES: <br>
|
|
|
|
@foreach($msg->kludges as $k=>$v)
|
|
|
|
<strong class="highlight">{{ $k }}</strong> {{ $v }}<br>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if ($msg instanceof Echomail)
|
2023-06-18 13:33:26 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
2024-05-23 10:11:32 +00:00
|
|
|
SEENBY: <br><strong class="highlight">{!! $msg
|
|
|
|
->seenby
|
|
|
|
->map(function($item) {
|
|
|
|
if ($item->pivot->export_at) {
|
|
|
|
if ($item->pivot->sent_at)
|
|
|
|
return sprintf('<strong class="success" title="Sent: %s Packet: %s">%s</strong>',$item->pivot->sent_at,$item->pivot->sent_pkt,$item->ftn2d);
|
|
|
|
else
|
|
|
|
return sprintf('<strong class="danger">%s</strong>',$item->ftn2d);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
return sprintf('<strong class="highlight">%s</strong>',$item->ftn2d);
|
|
|
|
}
|
|
|
|
})->join(', ') !!}
|
|
|
|
</strong>
|
2023-06-18 13:33:26 +00:00
|
|
|
</div>
|
2023-11-22 02:14:21 +00:00
|
|
|
|
2024-05-17 12:10:54 +00:00
|
|
|
@if($msg->rogue_seenby->count())
|
|
|
|
<br><small>[<strong>NOTE</strong>: Some seen-by values couldnt be identified - ({{ $msg->rogue_seenby->transform(fn($item)=>str_replace('0:','',$item))->join(',') }})]</small>
|
2023-11-22 02:14:21 +00:00
|
|
|
@endif
|
2021-08-29 01:48:27 +00:00
|
|
|
</div>
|
2023-06-18 13:33:26 +00:00
|
|
|
@endif
|
2021-08-29 01:48:27 +00:00
|
|
|
|
2024-05-17 12:10:54 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
2024-05-23 10:11:32 +00:00
|
|
|
PATH:
|
|
|
|
@if($msg->path->count())
|
|
|
|
<br><strong class="highlight">{!! $msg->pathorder()->join('</strong> -> <strong class="highlight">') !!}</strong>
|
|
|
|
@else
|
|
|
|
<br><small>[<strong>No details</strong>]</small>
|
|
|
|
@endif
|
2023-11-22 02:14:21 +00:00
|
|
|
|
2024-05-17 12:10:54 +00:00
|
|
|
@if(($msg instanceof Echomail) && $msg->rogue_path->count())
|
|
|
|
<br><small>[<strong>NOTE</strong>: Some path values couldnt be identified - ({{ $msg->rogue_path->join(',') }})]</small>
|
|
|
|
@endif
|
2023-07-15 00:46:19 +00:00
|
|
|
</div>
|
2024-05-17 12:10:54 +00:00
|
|
|
</div>
|
2023-07-15 00:46:19 +00:00
|
|
|
|
2024-05-23 10:11:32 +00:00
|
|
|
@if($msg->path->count())
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
2024-05-17 12:10:54 +00:00
|
|
|
RECEIVED:<br>
|
2024-05-23 10:11:32 +00:00
|
|
|
@if($msg instanceof Netmail)
|
|
|
|
@foreach ($msg->path as $path)
|
2024-10-21 06:46:33 +00:00
|
|
|
<strong class="highlight">{{ $msg->created_at }}</strong> via <strong class="highlight">{{ $path->ftn }}</strong> pkt <strong class="highlight">{{ $path->pivot->recv_pkt }}</strong><br>
|
2024-05-23 10:11:32 +00:00
|
|
|
@endforeach
|
|
|
|
@elseif ($msg instanceof Echomail)
|
|
|
|
<strong class="highlight">{{ ($x=$msg->path->sortBy('pivot.parent_id')->last())->pivot->recv_pkt }}</strong> from <strong class="highlight">{{ $x->ftn }}</strong> {{ $x->pivot->recv_at }}<br>
|
|
|
|
@endif
|
|
|
|
</div>
|
2023-11-22 02:35:37 +00:00
|
|
|
</div>
|
2024-05-23 10:11:32 +00:00
|
|
|
@endif
|
2023-12-19 04:16:10 +00:00
|
|
|
|
2024-05-19 13:28:45 +00:00
|
|
|
@if($msg instanceof Netmail)
|
|
|
|
<div class="col-8">
|
2024-10-21 06:46:33 +00:00
|
|
|
SENT:<br>
|
2024-05-19 13:28:45 +00:00
|
|
|
@if($msg->sent_pkt && $msg->sent_at)
|
2024-10-21 06:46:33 +00:00
|
|
|
<strong class="highlight">{{ $msg->sent_at }}</strong> via <strong class="highlight">{{ $msg->sent->ftn }}</strong> pkt <strong class="highlight">{{ $msg->sent_pkt }}</strong>
|
2024-05-19 13:28:45 +00:00
|
|
|
@else
|
|
|
|
<strong class="highlight">NOT SENT</strong>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2023-12-19 04:16:10 +00:00
|
|
|
@section('page-scripts')
|
|
|
|
<script type="text/javascript" src="{{ asset('ansilove/ansilove.js') }}"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2024-05-17 12:10:54 +00:00
|
|
|
var msg = new Uint8Array({!! json_encode(array_values(unpack('C*',str_replace("\r","\n",$msg->content)))) !!});
|
2023-12-19 04:16:10 +00:00
|
|
|
retina = window.devicePixelRatio > 1;
|
|
|
|
|
|
|
|
AnsiLove.renderBytes(
|
|
|
|
msg,
|
|
|
|
function (canvas, sauce) {
|
|
|
|
document.getElementById("canvas").appendChild(canvas);
|
|
|
|
},
|
|
|
|
{'font': '80x25', 'bits': 8, 'icecolors': 0, 'columns': 80}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|