From 279f529d16330ee122de015a213e68439f82ac3d Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 2 Sep 2025 22:32:49 -0500 Subject: [PATCH] up --- app/Http/Livewire/ShowPlanes.php | 4 +++- app/Http/Livewire/ShowServicios.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index b71d6a2..e37b9b6 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -763,7 +763,9 @@ class ShowPlanes extends Component $historial->save(); - $consultaHC = Historial_cuenta::where('cuenta_id', $this->consulta_verUsuarios->id)->orderBy('created_at', 'desc')->first()->perfil ?? 0; +// $consultaHC = Historial_cuenta::where('cuenta_id', $this->consulta_verUsuarios->id)->orderBy('created_at', 'desc')->first()->perfil ?? 0; + + $consultaHC = Historial_cuenta::where('cuenta_id', $this->consulta_verUsuarios->id)->max('perfil') ?? 0; if ($this->consulta_verUsuarios->estado == 'pendiente') { // completa $perfiles = $this->consulta_verUsuarios->servicio->completa; diff --git a/app/Http/Livewire/ShowServicios.php b/app/Http/Livewire/ShowServicios.php index ceababf..aac0a19 100755 --- a/app/Http/Livewire/ShowServicios.php +++ b/app/Http/Livewire/ShowServicios.php @@ -394,7 +394,8 @@ class ShowServicios extends Component $esta_error = false; $cuentasMostar = ''; - $perfil = $cuenta[$h]->historiales_count; + //$perfil = $cuenta[$h]->historiales_count; + $perfil = Historial_cuenta::where('cuenta_id', $cuenta[$h]->id)->max('perfil') ?? 0; for ($y = 0; $y < (int) $pantallas; $y++) {