clrghouz/resources/views/layouts/partials/sidebar.blade.php
Deon George c414ebd053
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m56s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
Created a 'zc' role to be used when a user is a ZC of a domain, or a site admin
2024-05-28 23:21:54 +10:00

60 lines
1.4 KiB
PHP

<div id="sidebar-scroller">
FTN Networks
@auth
@if($user->systems->count())
<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>
@endif
@endauth
@if(($x=\App\Models\Domain::select(['id','name'])
->when(((! $user) || (! $user->isAdmin())),fn($query)=>$query->public()->active())
->orderBy('name')
->get())
->count())
<dl>
<dt>Explore Networks</dt>
@foreach ($x as $o)
@if ($o->isManaged())
<dd><a href="{{ url('domain/view',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
@endif
@endforeach
</dl>
@endif
@auth
@can('zc')
<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>
@endcan
@can('admin')
<dl>
<dt>System Admin</dt>
<dd><a href="{{ url('system/ours') }}">This Host Systems</a></dd>
</dl>
<dl>
<dt>Users</dt>
<dd><a href="{{ url('user/addedit') }}">Create</a></dd>
<dd><a href="{{ url('user/list') }}">List</a></dd>
</dl>
@endcan
@endauth
<dl>
<dt>Debug</dt>
<dd><a href="{{ url('pkt') }}">View Packet</a></dd>
</dl>
</div>