function RegistroPagos($tipo, $idcuenta)
 {
     if ($tipo = "ctaxcobrar") {
         $lista = CobrosModel::where('cuentaxcobrar_id', '=', $idcuenta)->get();
     } else {
         $lista = PagosModel::where('cuentaxpagar_id', '=', $idcuenta)->get();
     }
     return $lista;
 }