From 3c8b3aedea359f7b31f4acf1ebaadcb62f38a83b Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 11 May 2024 16:02:41 -0500 Subject: [PATCH] Update ShowPlanes.php --- app/Http/Livewire/ShowPlanes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 2116345..2899398 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -311,6 +311,9 @@ class ShowPlanes extends Component if (is_string($this->fecha_inicial_renovar)) { $this->fecha_inicial_renovar = \Carbon\Carbon::createFromFormat('Y-m-d', $this->fecha_inicial_renovar); } + if (is_string($this->fecha_final_renovar)) { + $this->fecha_final_renovar = \Carbon\Carbon::createFromFormat('Y-m-d', $this->fecha_final_renovar); + } // Ahora puedes calcular la diferencia en días $this->tiempo_usuario = $this->fecha_final_renovar->diffInDays($this->fecha_inicial_renovar);