Update ShowPlanes.php

This commit is contained in:
Lizandro Guarnizo
2024-10-07 18:01:04 -05:00
parent e7a397ebd2
commit 54a674f49d
+3 -3
View File
@@ -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;