Fix for addresses where region_id is set inlieu of host_id, sort system ZC addresses

This commit is contained in:
Deon George
2021-11-20 11:11:17 +11:00
parent 28cdedb327
commit 483e35202b
2 changed files with 23 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ use App\Http\Controllers\DomainController as DC;
@endif
@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->sortBy('zone_id')->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join('</strong>, <strong class="highlight">') !!} </strong></p>
@endif
<div class="accordion accordion-flush" id="accordion_homepage">