Dont display inactive systems in the sidebar
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 42s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-12-02 19:44:08 +11:00
parent e9fde81bfb
commit 09a0139839

View File

@ -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>