diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php index c586556..57fbaaf 100644 --- a/resources/views/about.blade.php +++ b/resources/views/about.blade.php @@ -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 ], }); diff --git a/resources/views/layouts/partials/sidebar.blade.php b/resources/views/layouts/partials/sidebar.blade.php index dca384f..bbe4477 100644 --- a/resources/views/layouts/partials/sidebar.blade.php +++ b/resources/views/layouts/partials/sidebar.blade.php @@ -6,7 +6,9 @@ @foreach (\App\Models\Domain::select(['id','name']) ->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); }) ->orderBy('name')->get() as $o) -
{{ $o->name }}
+ @if ($o->managed()) +
{{ $o->name }}
+ @endif @endforeach