Update ShowPlanes.php
This commit is contained in:
@@ -317,10 +317,10 @@ class ShowPlanes extends Component
|
||||
'detalle' => 'El usuario ha renovado y liberado la cuenta ' . $cuenta_renovar->correo
|
||||
]);
|
||||
|
||||
if ($this->estado === 'activo') {
|
||||
$servicioPantallas = Servicio::find($this->servicio_newCuenta)->pantallas;
|
||||
$servicio_id= $cuenta_renovar->servicio->id;
|
||||
$servicioPantallas = Servicio::find($servicio_id)->pantallas;
|
||||
|
||||
$cuentasPendientes = Pendientes::where('estado', 'pendiente')->where('servicio_id', $this->servicio_newCuenta)->take($servicioPantallas)->get();
|
||||
$cuentasPendientes = Pendientes::where('estado', 'pendiente')->where('servicio_id', $servicio_id)->take($servicioPantallas)->get();
|
||||
|
||||
foreach ($cuentasPendientes as $i => $cuentaPendiente) {
|
||||
$servicioName = $cuentaPendiente->servicio->nombre;
|
||||
@@ -349,7 +349,7 @@ class ShowPlanes extends Component
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$this->alert('success', 'Cuenta renovada y liberada correctamente!', [
|
||||
'position' => 'top'
|
||||
|
||||
Reference in New Issue
Block a user