From 674c03c9825b637a8d30bbd0e4e429016927d74e Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 2 Sep 2025 22:36:07 -0500 Subject: [PATCH] Update ShowPromociones.php --- app/Http/Livewire/ShowPromociones.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/ShowPromociones.php b/app/Http/Livewire/ShowPromociones.php index e44dcb1..fffd437 100755 --- a/app/Http/Livewire/ShowPromociones.php +++ b/app/Http/Livewire/ShowPromociones.php @@ -318,7 +318,8 @@ class ShowPromociones extends Component if (!is_null($cuenta)) { - $perfil = $cuenta->historiales_count; + //$perfil = $cuenta->historiales_count; + $perfil = Historial_cuenta::where('cuenta_id', $cuenta->id)->max('perfil') ?? 0; for ($y = 0; $y < (int) $pantallas_tarifa; $y++) { $historial_cuenta = new Historial_cuenta();