Dont display inactive systems in the sidebar
This commit is contained in:
parent
e9fde81bfb
commit
09a0139839
@ -2,10 +2,10 @@
|
||||
FTN Networks
|
||||
|
||||
@auth
|
||||
@if($user->systems->count())
|
||||
@if(($x=$user->systems->where('active',TRUE))->count())
|
||||
<dl>
|
||||
<dt>My Systems</dt>
|
||||
@foreach ($user->systems->sortBy('name') as $o)
|
||||
@foreach ($x as $o)
|
||||
<dd><a href="{{ url('system/addedit',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
|
||||
@endforeach
|
||||
</dl>
|
||||
|
Loading…
Reference in New Issue
Block a user