This commit is contained in:
lizandrogd
2025-09-02 22:32:49 -05:00
parent 5edd42ba6c
commit 279f529d16
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -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;