diff --git a/resources/views/system/form-echoarea.blade.php b/resources/views/system/form-echoarea.blade.php index 9c44ab5..cc0041d 100644 --- a/resources/views/system/form-echoarea.blade.php +++ b/resources/views/system/form-echoarea.blade.php @@ -1,7 +1,6 @@ -@if(($x=\App\Models\Domain::active() - ->select('domains.*') - ->join('zones',['zones.domain_id'=>'domains.id']) - ->whereIn('zones.id',$o->sessions->pluck('pivot.zone_id')) +@if(($x=\App\Models\Zone::active() + ->whereIn('id',$o->sessions->pluck('pivot.zone_id')) + ->orderBy('zone_id') ->get())->count())