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