Show packet info when viewing echomail

This commit is contained in:
2023-11-22 13:35:37 +11:00
parent f639e3ffab
commit 3221d7f679
2 changed files with 12 additions and 10 deletions

View File

@@ -70,14 +70,16 @@ use App\Classes\FTN\Message;
</div>
</div>
@if ($msg->flags)
<div class="row pb-2">
<div class="col-8">
RECEIVED:
<div class="row pb-2">
<div class="col-8">
RECEIVED:<br>
@if ($msg instanceof \App\Models\Netmail)
@foreach ($msg->received as $path)
<strong class="highlight">{{ $path->pivot->recv_pkt }}</strong> by <strong class="highlight">{{ $path->ftn }}</strong> {{ $msg->created_at }}
<strong class="highlight">{{ $path->pivot->recv_pkt }}</strong> from <strong class="highlight">{{ $path->ftn }}</strong> {{ $msg->created_at }}
@endforeach
</div>
@elseif ($msg instanceof \App\Models\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 }}
@endif
</div>
@endif
</div>
@endif