From ae44732848c9575dbf52fcabebaff1b006f4b43b Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 9 Dec 2024 10:50:28 +1100 Subject: [PATCH] When showing items sent, also incluce tftn_id in case netmails get routed --- resources/views/system/addedit.blade.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/system/addedit.blade.php b/resources/views/system/addedit.blade.php index 4e4de40..16f74f4 100644 --- a/resources/views/system/addedit.blade.php +++ b/resources/views/system/addedit.blade.php @@ -387,11 +387,15 @@
+
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
+
The last Echomails sent (to you): @@ -457,6 +462,7 @@ @endif
+
The last Files sent (to you):