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