diff --git a/app/Http/Livewire/ShowServicios.php b/app/Http/Livewire/ShowServicios.php index 10e4589..d9a7c93 100755 --- a/app/Http/Livewire/ShowServicios.php +++ b/app/Http/Livewire/ShowServicios.php @@ -377,6 +377,7 @@ class ShowServicios extends Component ->where('estado', 'pendiente') ->doesntHave('perfil') ->get(); + } elseif ((int) $pantalla_servicio < (int) $cantidad_solicitada) { $suma2 = $pantalla_servicio - $pantallas; $cantidad_necesaria = $this->cantidad_tarjetaPlan; @@ -403,7 +404,7 @@ class ShowServicios extends Component return $historiales_count <= $suma2; }); - $cuentas = $cuentas_filtradas->values(); + $cuenta = $cuentas_filtradas->values(); } else {