Complete of logging received and sent packet names, and display them in the web ui for each node
This commit is contained in:
@@ -415,57 +415,141 @@
|
||||
<div class="accordion-body">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
The last Netmails sent:
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>FTN</th>
|
||||
<th>Packet</th>
|
||||
<th>Sent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
The last Netmails sent (to you):
|
||||
|
||||
<tbody>
|
||||
@dump($o->addresses->sortBy('zone.zone_id')->pluck('ftn'))
|
||||
@foreach (\App\Models\Netmail::where('tftn_id',$o->addresses->pluck('id'))->whereNotNull('sent_at')->orderBy('sent_at')->limit(10) as $no)
|
||||
@if(($x=\App\Models\Netmail::whereIn('sent_id',$o->addresses->pluck('id'))
|
||||
->whereNotNull('sent_at')
|
||||
->orderBy('sent_at','DESC')
|
||||
->limit(10)
|
||||
->get())->count())
|
||||
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{ $no->tftn->ftn }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<th>Packet</th>
|
||||
<th>Count</th>
|
||||
<th>Sent</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($x->groupBy('sent_pkt') as $oo)
|
||||
<tr>
|
||||
<td>{{ $oo->first()->sent_pkt }}</td>
|
||||
<td>{{ $oo->count() }}</td>
|
||||
<td>{{ $oo->first()->sent_at }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<strong class="highlight">None</strong>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
The last Echomails sent:
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>FTN</th>
|
||||
<th>Packet</th>
|
||||
<th>Sent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
The last Echomails sent (to you):
|
||||
|
||||
<tbody>
|
||||
@foreach (\App\Models\Echomail::join('echomail_seenby',['echomail_seenby.echomail_id'=>'echomails.id'])
|
||||
->whereNotNull('echomail_seenby.sent_at')
|
||||
->whereIn('address_id',$o->addresses->pluck('id'))
|
||||
->orderBy('sent_at','DESC')
|
||||
->orderBy('packet')
|
||||
->limit(10)
|
||||
->get()
|
||||
->groupBy('packet') as $oo)
|
||||
@if(($x=\App\Models\Echomail::select(['echomails.id','echomail_seenby.sent_pkt','echomail_seenby.sent_at'])
|
||||
->join('echomail_seenby',['echomail_seenby.echomail_id'=>'echomails.id'])
|
||||
->whereNotNull('echomail_seenby.sent_at')
|
||||
->whereIn('address_id',$o->addresses->pluck('id'))
|
||||
->orderBy('sent_at','DESC')
|
||||
->orderBy('sent_pkt')
|
||||
->limit(10)
|
||||
->get())->count())
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{ \App\Models\Address::where('id',$oo->first()->address_id)->single()->ftn }}</td>
|
||||
<td>{{ $oo->first()->packet }}</td>
|
||||
<td>{{ $oo->first()->sent_at }}</td>
|
||||
<th>Packet</th>
|
||||
<th>Count</th>
|
||||
<th>Sent</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($x->groupBy('sent_pkt') as $oo)
|
||||
<tr>
|
||||
<td>{{ $oo->first()->sent_pkt }}</td>
|
||||
<td>{{ $oo->count() }}</td>
|
||||
<td>{{ $oo->first()->sent_at }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<strong class="highlight">None</strong>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pt-2">
|
||||
<div class="col-4">
|
||||
The last Netmails received (you sent):
|
||||
|
||||
@if(($x=\App\Models\Netmail::select(['netmails.*','netmail_path.recv_pkt'])
|
||||
->join('netmail_path',['netmail_path.netmail_id'=>'netmails.id'])
|
||||
->whereIn('address_id',$o->addresses->pluck('id'))
|
||||
->orderBy('created_at','DESC')
|
||||
->limit(10)
|
||||
->get())->count())
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Packet</th>
|
||||
<th>Count</th>
|
||||
<th>Received</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($x->groupBy('recv_pkt') as $oo)
|
||||
<tr>
|
||||
<td>{{ $oo->first()->recv_pkt }}</td>
|
||||
<td>{{ $oo->count() }}</td>
|
||||
<td>{{ $oo->first()->created_at }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<strong class="highlight">None</strong>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
The last Echomails received (you sent):
|
||||
|
||||
@if(($x=\App\Models\Echomail::select(['echomails.created_at','echomail_path.recv_pkt'])
|
||||
->join('echomail_path',['echomail_path.echomail_id'=>'echomails.id'])
|
||||
->whereNotNull('echomail_path.recv_pkt')
|
||||
->whereIn('address_id',$o->addresses->pluck('id'))
|
||||
->orderBy('created_at','DESC')
|
||||
->orderBy('recv_pkt')
|
||||
->limit(10)
|
||||
->get())->count())
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Packet</th>
|
||||
<th>Count</th>
|
||||
<th>Received</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($x->groupBy('recv_pkt') as $oo)
|
||||
<tr>
|
||||
<td>{{ $oo->first()->recv_pkt }}</td>
|
||||
<td>{{ $oo->count() }}</td>
|
||||
<td>{{ $oo->first()->created_at }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<strong class="highlight">None</strong>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user