Fix for showing FTN list
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 36s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m43s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-06-27 10:57:01 +10:00
parent 3333679fc6
commit 173446edbe
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class Domain extends Model
public function zones() public function zones()
{ {
return $this->hasMany(Zone::class) return $this->hasMany(Zone::class)
->select(['id','zone_id','domain_id']); ->select(['id','zone_id','domain_id','active']);
} }
/* ATTRIBUTES */ /* ATTRIBUTES */

View File

@ -4,7 +4,7 @@
@endsection @endsection
@php @php
use App\Models\Domain; use App\Models\{Address,Domain};
@endphp @endphp
@section('content') @section('content')
@ -39,7 +39,7 @@ use App\Models\Domain;
<td class="text-end">{{ $do->active ? 'Active' : 'Not Active' }}</td> <td class="text-end">{{ $do->active ? 'Active' : 'Not Active' }}</td>
<td class="text-end">{{ $do->isManaged() ? 'YES' : 'NO' }}</td> <td class="text-end">{{ $do->isManaged() ? 'YES' : 'NO' }}</td>
<td> <td>
@foreach (($x=$do->zones->pluck('addresses')->flatten())->where('role',\App\Models\Address::NODE_ZC)->sortBy('zone.zone_id') as $ao) @foreach (($x=$do->zones->pluck('addresses')->flatten())->where('role_id',Address::NODE_ZC)->sortBy('zone.zone_id') as $ao)
{{ $ao->system->sysop }}, <a href="{{ url('system/view',$ao->system_id) }}">{{ $ao->system->name }}</a><br> {{ $ao->system->sysop }}, <a href="{{ url('system/view',$ao->system_id) }}">{{ $ao->system->name }}</a><br>
@endforeach @endforeach
</td> </td>