From 8821601b4b41980369966389de23d595de50bea7 Mon Sep 17 00:00:00 2001 From: Felipe Date: Sat, 7 Oct 2023 17:36:27 -0500 Subject: [PATCH] filtrar clientes --- app/Http/Livewire/ShowClientes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/ShowClientes.php b/app/Http/Livewire/ShowClientes.php index beeef99..58133ba 100644 --- a/app/Http/Livewire/ShowClientes.php +++ b/app/Http/Livewire/ShowClientes.php @@ -53,8 +53,8 @@ class ShowClientes extends Component $this->fechaActual = date('d/m/Y'); $fechaVencimiento = Carbon::now()->subDay(30); - // $consulta_clientes = Historiale::where('vendedor_id', Auth()->user()->id)->whereDate('fecha_final', '>', $fechaVencimiento); - $consulta_clientes = Historiale::whereDate('fecha_final', '>', $fechaVencimiento); + $consulta_clientes = Historiale::where('vendedor_id', Auth()->user()->id)->whereDate('fecha_final', '>', $fechaVencimiento); + // $consulta_clientes = Historiale::whereDate('fecha_final', '>', $fechaVencimiento); $this->configuracion = User::where('id', Auth::user()->id)->whereDate('updated_at', '!=', $fechaHoy)->first();