Fix for showing FTN list
This commit is contained in:
parent
3333679fc6
commit
173446edbe
@ -63,7 +63,7 @@ class Domain extends Model
|
||||
public function zones()
|
||||
{
|
||||
return $this->hasMany(Zone::class)
|
||||
->select(['id','zone_id','domain_id']);
|
||||
->select(['id','zone_id','domain_id','active']);
|
||||
}
|
||||
|
||||
/* ATTRIBUTES */
|
||||
|
@ -4,7 +4,7 @@
|
||||
@endsection
|
||||
|
||||
@php
|
||||
use App\Models\Domain;
|
||||
use App\Models\{Address,Domain};
|
||||
@endphp
|
||||
|
||||
@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->isManaged() ? 'YES' : 'NO' }}</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>
|
||||
@endforeach
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user