diff --git a/app/Http/Livewire/ShowClientes.php b/app/Http/Livewire/ShowClientes.php index abcc793..6499e89 100755 --- a/app/Http/Livewire/ShowClientes.php +++ b/app/Http/Livewire/ShowClientes.php @@ -50,10 +50,11 @@ 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); - $this->configuracion = User::where('id', Auth::user()->id)->whereDate('updated_at', '!=', $fechaHoy)->first(); + $this->configuracion = User::where('id', Auth::user()->id)->whereDate('updated_at', '!=', Carbon::now())->first(); if ($this->configuracion) { $this->vencidosHoy = true; @@ -72,20 +73,13 @@ 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); } $consulta_clientes = $consulta_clientes->with('tarifa', 'promocion', 'cliente') ->orderBy('id', 'DESC') ->paginate($this->entradas); - - - // dd($consulta_clientes); - return view('livewire.show-clientes', [ 'clientes' => $consulta_clientes ]); diff --git a/resources/views/livewire/show-clientes.blade.php b/resources/views/livewire/show-clientes.blade.php index b6c3d78..57b6266 100755 --- a/resources/views/livewire/show-clientes.blade.php +++ b/resources/views/livewire/show-clientes.blade.php @@ -10,10 +10,11 @@ {{-- Buscador --}} -
+
- + Clientes
@@ -77,8 +78,12 @@ @endforeach @endif
-
- +
+ + +
- +

@foreach ($consulta_historial->cuentas->unique() as $cuenta)

@@ -684,32 +688,19 @@
@foreach ($cuenta->perfil as $perfil) @if ($consulta_historial->id == $perfil->historial_id) - - Perfil {{ $perfil->perfil }} + - Perfil {{ $perfil->perfil }} @endif @endforeach -
Email: - {{ $cuenta->correo }}
-
Pass: - {{ $cuenta->password }}
+
Email: {{ $cuenta->correo }}
+
Pass: {{ $cuenta->password }}
@endforeach

@endif - - - -
- {{--
- - -
--}} -

@@ -717,7 +708,6 @@

-

@@ -739,12 +729,9 @@

- -
- +
@@ -754,7 +741,6 @@
- {{-- Modal ver vencidos --}}
- @if (!empty($vencidHoy))
-
Los siguientes servicios vencen maƱana:
+
Los siguientes servicios vencen hoy:
@@ -802,18 +787,35 @@ @if (!empty($h->tarifa_id)) @elseif(!empty($h->promocion_id))
- +
@endif
-
- diff --git a/resources/views/livewire/show-planes.blade.php b/resources/views/livewire/show-planes.blade.php index 570ebb9..58cc221 100755 --- a/resources/views/livewire/show-planes.blade.php +++ b/resources/views/livewire/show-planes.blade.php @@ -332,11 +332,9 @@ @endif -
Email:{{ $consulta_verUsuarios->correo ?? '' }} +
Email:{{ $consulta_verUsuarios->correo ?? '' }}
-
Password:{{ $consulta_verUsuarios->password ?? '' }} +
Password:{{ $consulta_verUsuarios->password ?? '' }}
@if ($consulta_verUsuarios)