diff --git a/resources/views/layouts/partials/sidebar.blade.php b/resources/views/layouts/partials/sidebar.blade.php index 74c39fa..da30d76 100644 --- a/resources/views/layouts/partials/sidebar.blade.php +++ b/resources/views/layouts/partials/sidebar.blade.php @@ -2,10 +2,10 @@ FTN Networks @auth - @if($user->systems->count()) + @if(($x=$user->systems->where('active',TRUE))->count())
My Systems
- @foreach ($user->systems->sortBy('name') as $o) + @foreach ($x as $o)
{{ $o->name }}
@endforeach