From 54a674f49df227840e472109ed550741b6d97b13 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:01:04 -0500 Subject: [PATCH] Update ShowPlanes.php --- app/Http/Livewire/ShowPlanes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 2f84cf1..b91f281 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -320,7 +320,7 @@ class ShowPlanes extends Component $servicio_id = $cuenta_renovar->servicio->id; $servicioPantallas = Servicio::find($servicio_id)->pantallas; - if($this->estado === 'activo'){ + if($this->estado == 'activo'){ $cuentasPendientes = Pendientes::where('estado', 'pendiente')->where('servicio_id', $servicio_id)->take($servicioPantallas)->get(); foreach ($cuentasPendientes as $i => $cuentaPendiente) { @@ -461,10 +461,10 @@ class ShowPlanes extends Component 'detalle' => 'El usuario ha creado la cuenta ' . $cuenta->correo ]); - if ($this->estado === 'activo') { + if ($this->estado == 'activo') { $servicioPantallas = Servicio::find($this->servicio_newCuenta)->pantallas; - $cuentasPendientes = ('estado', 'pendiente')->where('servicio_id', $this->servicio_newCuenta)->take($servicioPantallas)->get(); + $cuentasPendientes = Cuentas::where('estado', 'pendiente')->where('servicio_id', $this->servicio_newCuenta)->take($servicioPantallas)->get(); foreach ($cuentasPendientes as $i => $cuentaPendiente) { $servicioName = $cuentaPendiente->servicio->nombre;