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();