diff --git a/app/Http/Livewire/ShowTop.php b/app/Http/Livewire/ShowTop.php index 74a11a8..2365ad2 100755 --- a/app/Http/Livewire/ShowTop.php +++ b/app/Http/Livewire/ShowTop.php @@ -25,7 +25,7 @@ class ShowTop extends Component $month = $this->showLastMonth ? date('m', strtotime('last month')) : date('m'); $consulta_ventas = User::with(['historiales_venta' => function ($query) use ($month) { - $query->whereMonth('fecha_inicio', $month); + $query->whereMonth('fecha_inicio', $month)->where('estado', 'activo'); }]) ->withCount(['historiales_venta' => function ($query) use ($month) { $query->whereMonth('fecha_inicio', $month);