System Name |
{{ $o->name }} @can('update',$o)Edit@endcan |
Sysop |
{{ $o->sysop }} |
Location |
{{ $o->location }} |
Address |
{{ $o->access_method }} |
Mailer |
{{ $o->access_mailer }} |
@if($o->phone)
Phone |
{{ $o->phone }} |
@endif
Last Seen |
{{ $o->logs_recent->count() ? $o->logs_recent->last()->created_at : '-' }} |
@if($o->addresses->count())
FTN Addresses |
Domain |
Addresses |
@foreach($o->addresses->sortBy('zone.domain.name')->groupBy('zone.domain.name') as $name => $children)
{{ $name }} |
{{ $children->pluck('ftn3d')->join(', ') }} |
@endforeach
|
Echoarea Activity |
Domain |
# |
Last |
@foreach($o->addresses->sortBy('zone.domain.name')->groupBy('zone.domain_id') as $did => $domain_addresses)
@foreach(\App\Models\Echoarea::select([DB::raw('count(echomails.*) as count'),DB::raw('max(echomails.datetime) as most_recent')])
->join('echomails',['echomails.echoarea_id'=>'echoareas.id'])
->join('echomail_seenby',function($join) use ($domain_addresses) {
return $join->on('echomail_seenby.echomail_id','echomails.id')
->whereIn('echomail_seenby.address_id',$domain_addresses->pluck('id'));
})
->get() as $o)
{{ $domain_addresses->first()->zone->domain->name }} |
@if($o->count)
{{ $o->count }} |
{{ $o->most_recent }} |
@else
No Echoarea Activity |
@endif
@endforeach
@endforeach
|
@endif