Only show managed networks when exploring

This commit is contained in:
Deon George
2022-12-17 14:00:41 +11:00
parent eca9f257eb
commit 5f6e202a3f
2 changed files with 14 additions and 7 deletions

View File

@@ -136,12 +136,17 @@ If you have more than 1 BBS, then the Clearing Houz can receive all your mail fr
}
},
series: [
@foreach (\App\Models\Domain::active()->public()->orderBy('name')->with(['echoareas'])->get() as $o)
{
name: '{{ $o->name }}',
data: {!! $o->daily_area_stats() !!},
dashStyle: 'ShortDot',
},
@foreach (\App\Models\Domain::active()
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
->orderBy('name')
->with(['echoareas'])->get() as $o)
@if ($o->managed())
{
name: '{{ $o->name }}',
data: {!! $o->daily_area_stats() !!},
dashStyle: 'ShortDot',
},
@endif
@endforeach
],
});