From 08c40a119c24d14753f32a0262add542ee1e9930 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 1 May 2024 09:20:10 -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 aa65f74..4df3285 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -280,13 +280,13 @@ class ShowPlanes extends Component $id = $this->id_cuentaVer; $historial = Historial_cuenta::where('cuenta_id', $id)->first(); - dd($historial); - $consultaFechaFinal = Historiale::find($historial->historiale_id)->fecha_final; + //dd($historial); + $consultaFechaFinal = Historiale::find($historial->historial_id)->fecha_final; //dd($consultaFechaFinal); $nuevaFecha= $consultaFechaFinal->addDays($this->tiempo_usuario); - Historiale::where('id', $historial->historiale_id)->update([ + Historiale::where('id', $historial->historial_id)->update([ 'fecha_final' => date('Y-m-d', strtotime(strval($nuevaFecha))), ]);