Improve netmail sent/receive information
This commit is contained in:
parent
53c5488df7
commit
a6e911fb48
@ -241,6 +241,11 @@ final class Netmail extends Model implements Packet
|
|||||||
->using(ViaPivot::class);
|
->using(ViaPivot::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function sent()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Address::class);
|
||||||
|
}
|
||||||
|
|
||||||
public function tftn()
|
public function tftn()
|
||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
|
@ -106,7 +106,7 @@ use App\Models\{Echomail,Netmail};
|
|||||||
RECEIVED:<br>
|
RECEIVED:<br>
|
||||||
@if($msg instanceof Netmail)
|
@if($msg instanceof Netmail)
|
||||||
@foreach ($msg->path as $path)
|
@foreach ($msg->path as $path)
|
||||||
<strong class="highlight">{{ $path->pivot->recv_pkt }}</strong> from <strong class="highlight">{{ $path->ftn }}</strong> {{ $msg->created_at }}<br>
|
<strong class="highlight">{{ $msg->created_at }}</strong> via <strong class="highlight">{{ $path->ftn }}</strong> pkt <strong class="highlight">{{ $path->pivot->recv_pkt }}</strong><br>
|
||||||
@endforeach
|
@endforeach
|
||||||
@elseif ($msg instanceof Echomail)
|
@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>
|
<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>
|
||||||
@ -117,9 +117,9 @@ use App\Models\{Echomail,Netmail};
|
|||||||
|
|
||||||
@if($msg instanceof Netmail)
|
@if($msg instanceof Netmail)
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
SENT:
|
SENT:<br>
|
||||||
@if($msg->sent_pkt && $msg->sent_at)
|
@if($msg->sent_pkt && $msg->sent_at)
|
||||||
<strong class="highlight">{{ $msg->sent_at }}</strong> (<strong class="highlight">{{ $msg->sent_pkt }}.pkt</strong>)
|
<strong class="highlight">{{ $msg->sent_at }}</strong> via <strong class="highlight">{{ $msg->sent->ftn }}</strong> pkt <strong class="highlight">{{ $msg->sent_pkt }}</strong>
|
||||||
@else
|
@else
|
||||||
<strong class="highlight">NOT SENT</strong>
|
<strong class="highlight">NOT SENT</strong>
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
Reference in New Issue
Block a user