clrghouz/resources/views/layouts/partials/sidebar.blade.php
Deon George d6e23b9a90
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 33s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m38s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
Optimise queries for rendering the about page
2024-04-13 22:41:58 +10:00

55 lines
1.3 KiB
PHP

<div id="sidebar-scroller">
FTN Networks
@auth
<dl>
<dt>My Systems</dt>
@foreach ($user->systems->sortBy('name') as $o)
<dd><a href="{{ url('system/addedit',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
@endforeach
</dl>
@endauth
<dl>
<dt>Explore Networks</dt>
@foreach (\App\Models\Domain::select(['id','name'])
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
->orderBy('name')
->get() as $o)
@if ($o->isManaged())
<dd><a href="{{ url('domain/view',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
@endif
@endforeach
</dl>
@auth
@if ($user->isZC())
<dl>
<dt>Network Admin</dt>
<dd><a href="{{ url('domain') }}">Domains</a></dd>
<dd><a href="{{ url('system') }}">Systems</a></dd>
<dd><a href="{{ url('zone') }}">Zones</a></dd>
<dd><a href="{{ url('echoarea') }}">Echoareas</a></dd>
<dd><a href="{{ url('filearea') }}">Fileareas</a></dd>
</dl>
<dl>
<dt>System Admin</dt>
<dd><a href="{{ url('system/ours') }}">This Host Systems</a></dd>
</dl>
@endif
@can('admin')
<dl>
<dt>Users</dt>
<dd><a href="{{ url('user/addedit') }}">Create</a></dd>
<dd><a href="{{ url('user') }}">List</a></dd>
</dl>
@endcan
@endauth
<dl>
<dt>Debug</dt>
<dd><a href="{{ url('pkt') }}">View Packet</a></dd>
</dl>
</div>