Fix System ZC identification
This commit is contained in:
parent
414a10f84e
commit
ae96ff9a24
@ -52,7 +52,7 @@ class System extends Model
|
|||||||
*/
|
*/
|
||||||
public function zcs()
|
public function zcs()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(Zone::class);
|
return $this->hasMany(Zone::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ use App\Http\Controllers\DomainController as DC;
|
|||||||
@if($o->setup)<sup class="success" style="float:right;top:-2em;">* This Host</sup>@endif
|
@if($o->setup)<sup class="success" style="float:right;top:-2em;">* This Host</sup>@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($o->zcs)
|
@if($o->zcs->count())
|
||||||
<p>This system is the ZC for the following zones: <strong class="highlight">{!! $o->zcs->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join('</strong>, <strong class="highlight">') !!} </strong></p>
|
<p>This system is the ZC for the following zones: <strong class="highlight">{!! $o->zcs->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join('</strong>, <strong class="highlight">') !!} </strong></p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user