From bbe3bae7e9b7a21cb50a9fe69af8d080facfc897 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Sat, 7 Oct 2023 22:07:02 -0500 Subject: [PATCH] update --- app/Http/Livewire/ShowClientes.php | 6 ++-- .../views/livewire/show-clientes.blade.php | 29 +++++++++++++++---- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/app/Http/Livewire/ShowClientes.php b/app/Http/Livewire/ShowClientes.php index 58133ba..5a1db01 100644 --- a/app/Http/Livewire/ShowClientes.php +++ b/app/Http/Livewire/ShowClientes.php @@ -76,9 +76,9 @@ class ShowClientes extends Component if ($this->venceHoy) { - $fecha5 = Carbon::parse($fechaHoy)->subDay(5); - $consulta_clientes = $consulta_clientes->whereDate('fecha_final', '<=', $fechaHoy) - ->whereDate('fecha_final', '>=', $fecha5); + //$fecha5 = Carbon::parse($fechaHoy)->subDay(5); + $consulta_clientes = $consulta_clientes->whereDate('fecha_final', $fechaHoy); + //->whereDate('fecha_final', '>=', $fecha5); } $consulta_clientes = $consulta_clientes->with('tarifa', 'promocion', 'cliente') diff --git a/resources/views/livewire/show-clientes.blade.php b/resources/views/livewire/show-clientes.blade.php index 27a8272..af9cd75 100644 --- a/resources/views/livewire/show-clientes.blade.php +++ b/resources/views/livewire/show-clientes.blade.php @@ -11,7 +11,8 @@ {{-- Buscador --}} -