When showing items sent, also incluce tftn_id in case netmails get routed
This commit is contained in:
parent
bcae8693a7
commit
ae44732848
@ -387,11 +387,15 @@
|
||||
<div id="collapse_transfers" class="accordion-collapse collapse {{ ($flash=='transfers') ? 'show' : '' }}" aria-labelledby="last" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
<div class="row">
|
||||
<!-- Netmails sent to you -->
|
||||
<div class="col-4">
|
||||
The last Netmails sent (to you):
|
||||
|
||||
@if(($x=Netmail::select(['sent_pkt','sent_at',DB::raw('count(sent_pkt) AS count')])
|
||||
->whereIn('sent_id',$o->addresses->pluck('id'))
|
||||
->where(fn($query)=>
|
||||
$query->whereIn('sent_id',$o->addresses->pluck('id'))
|
||||
->OrWhereIn('tftn_id',$o->addresses->pluck('id'))
|
||||
)
|
||||
->whereNotNull('sent_at')
|
||||
->groupBy(['sent_pkt','sent_at'])
|
||||
->orderBy('sent_at','DESC')
|
||||
@ -422,6 +426,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Echomails sent to you -->
|
||||
<div class="col-4">
|
||||
The last Echomails sent (to you):
|
||||
|
||||
@ -457,6 +462,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Files sent to you -->
|
||||
<div class="col-4">
|
||||
The last Files sent (to you):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user