When showing items sent, also incluce tftn_id in case netmails get routed
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 36s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m34s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
Deon George 2024-12-09 10:50:28 +11:00
parent bcae8693a7
commit ae44732848

View File

@ -387,11 +387,15 @@
<div id="collapse_transfers" class="accordion-collapse collapse {{ ($flash=='transfers') ? 'show' : '' }}" aria-labelledby="last" data-bs-parent="#accordion_homepage"> <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="accordion-body">
<div class="row"> <div class="row">
<!-- Netmails sent to you -->
<div class="col-4"> <div class="col-4">
The last Netmails sent (to you): The last Netmails sent (to you):
@if(($x=Netmail::select(['sent_pkt','sent_at',DB::raw('count(sent_pkt) AS count')]) @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') ->whereNotNull('sent_at')
->groupBy(['sent_pkt','sent_at']) ->groupBy(['sent_pkt','sent_at'])
->orderBy('sent_at','DESC') ->orderBy('sent_at','DESC')
@ -422,6 +426,7 @@
@endif @endif
</div> </div>
<!-- Echomails sent to you -->
<div class="col-4"> <div class="col-4">
The last Echomails sent (to you): The last Echomails sent (to you):
@ -457,6 +462,7 @@
@endif @endif
</div> </div>
<!-- Files sent to you -->
<div class="col-4"> <div class="col-4">
The last Files sent (to you): The last Files sent (to you):