update
This commit is contained in:
@@ -224,8 +224,6 @@ class ShowPlanes extends Component
|
||||
{
|
||||
$this->fecha_inicial_renovar = Carbon::now()->format('Y-m-d');
|
||||
$this->fecha_final_renovar = Carbon::now()->addDays(30)->format('Y-m-d');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -320,7 +318,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) {
|
||||
@@ -333,7 +331,9 @@ class ShowPlanes extends Component
|
||||
$historial_cuenta->save();
|
||||
$cuentaPendiente->update(['estado' => 'cerrado']);
|
||||
|
||||
if ($cuentaPendiente->historial->vendedor !== null) {
|
||||
$cuentaPendiente->historial->vendedor->notify(new NotificacionPendiente($servicioName));
|
||||
}
|
||||
|
||||
$consulta = new Notificacion();
|
||||
$consulta->remitente_id = Auth::user()->id;
|
||||
@@ -476,7 +476,9 @@ class ShowPlanes extends Component
|
||||
$historial_cuenta->save();
|
||||
$cuentaPendiente->update(['estado' => 'cerrado']);
|
||||
|
||||
if ($cuentaPendiente->historial->vendedor !== null) {
|
||||
$cuentaPendiente->historial->vendedor->notify(new NotificacionPendiente($servicioName));
|
||||
}
|
||||
|
||||
$consulta = new Notificacion();
|
||||
$consulta->remitente_id = Auth::user()->id;
|
||||
@@ -871,7 +873,5 @@ class ShowPlanes extends Component
|
||||
} else {
|
||||
$this->delete_1 = [];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user