From 2e89858c7bc42646acdd1de589750c5245d68543 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 11 May 2024 16:07:26 -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 87efeb0..386c100 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -326,8 +326,8 @@ class ShowPlanes extends Component $cuenta->update([ 'correo' => $this->usuario_renovar, 'password' => $this->password_renovar, - //'inicio' => date('Y-m-d', strtotime(strval($this->fecha_inicial_renovar))), - //'vencimiento' => date('Y-m-d', strtotime(strval($this->fecha_final_renovar))), + 'inicio' => date('Y-m-d', strtotime(strval($this->fecha_inicial_renovar))), + 'vencimiento' => date('Y-m-d', strtotime(strval($this->fecha_final_renovar))), 'estado' => $this->estado, ]); @@ -339,7 +339,7 @@ class ShowPlanes extends Component // Corrección 3: Usa la fecha final original del historial para calcular la nueva fecha final $nueva_fecha_final = \Carbon\Carbon::parse($historial->fecha_final)->addDays($this->tiempo_usuario)->format('Y-m-d'); - dd($nueva_fecha_final); + $historial_guardar = new Historiale; $historial_guardar->fecha_inicio = $historial->fecha_final; $historial_guardar->fecha_final = $nueva_fecha_final;